isomorfeus-preact 10.5.0 → 10.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1080) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +29 -0
  3. data/lib/isomorfeus/preact/config.rb +19 -35
  4. data/lib/isomorfeus/preact/imports.rb +30 -0
  5. data/lib/isomorfeus/preact_view_helper.rb +34 -42
  6. data/lib/isomorfeus-preact.rb +6 -4
  7. data/lib/lucid_app/context.rb +9 -9
  8. data/lib/preact/version.rb +1 -1
  9. data/node_modules/.bin/loose-envify +12 -0
  10. data/node_modules/.bin/loose-envify.cmd +17 -0
  11. data/node_modules/.bin/loose-envify.ps1 +28 -0
  12. data/node_modules/.package-lock.json +278 -0
  13. data/node_modules/@babel/runtime/LICENSE +22 -0
  14. data/node_modules/@babel/runtime/README.md +19 -0
  15. data/node_modules/@babel/runtime/helpers/AsyncGenerator.js +99 -0
  16. data/node_modules/@babel/runtime/helpers/AwaitValue.js +6 -0
  17. data/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +31 -0
  18. data/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +12 -0
  19. data/node_modules/@babel/runtime/helpers/arrayWithHoles.js +6 -0
  20. data/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +8 -0
  21. data/node_modules/@babel/runtime/helpers/assertThisInitialized.js +10 -0
  22. data/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +57 -0
  23. data/node_modules/@babel/runtime/helpers/asyncIterator.js +16 -0
  24. data/node_modules/@babel/runtime/helpers/asyncToGenerator.js +38 -0
  25. data/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +8 -0
  26. data/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +8 -0
  27. data/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +23 -0
  28. data/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +10 -0
  29. data/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +14 -0
  30. data/node_modules/@babel/runtime/helpers/classCallCheck.js +8 -0
  31. data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +8 -0
  32. data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +8 -0
  33. data/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +10 -0
  34. data/node_modules/@babel/runtime/helpers/classNameTDZError.js +6 -0
  35. data/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +11 -0
  36. data/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +11 -0
  37. data/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +9 -0
  38. data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +10 -0
  39. data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +8 -0
  40. data/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +12 -0
  41. data/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +10 -0
  42. data/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +9 -0
  43. data/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +6 -0
  44. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +14 -0
  45. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +14 -0
  46. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +15 -0
  47. data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +9 -0
  48. data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +6 -0
  49. data/node_modules/@babel/runtime/helpers/construct.js +26 -0
  50. data/node_modules/@babel/runtime/helpers/createClass.js +18 -0
  51. data/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +61 -0
  52. data/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +25 -0
  53. data/node_modules/@babel/runtime/helpers/createSuper.js +25 -0
  54. data/node_modules/@babel/runtime/helpers/decorate.js +401 -0
  55. data/node_modules/@babel/runtime/helpers/defaults.js +17 -0
  56. data/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +25 -0
  57. data/node_modules/@babel/runtime/helpers/defineProperty.js +17 -0
  58. data/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +95 -0
  59. data/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +3 -0
  60. data/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +28 -0
  61. data/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
  62. data/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +3 -0
  63. data/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +4 -0
  64. data/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
  65. data/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +54 -0
  66. data/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +13 -0
  67. data/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +35 -0
  68. data/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +4 -0
  69. data/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +5 -0
  70. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +20 -0
  71. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +7 -0
  72. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +11 -0
  73. data/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
  74. data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
  75. data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +5 -0
  76. data/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +7 -0
  77. data/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +3 -0
  78. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +6 -0
  79. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +6 -0
  80. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
  81. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +7 -0
  82. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +4 -0
  83. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
  84. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +7 -0
  85. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
  86. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +3 -0
  87. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +8 -0
  88. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +8 -0
  89. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +9 -0
  90. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
  91. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +3 -0
  92. data/node_modules/@babel/runtime/helpers/esm/construct.js +18 -0
  93. data/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
  94. data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +57 -0
  95. data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +21 -0
  96. data/node_modules/@babel/runtime/helpers/esm/createSuper.js +19 -0
  97. data/node_modules/@babel/runtime/helpers/esm/decorate.js +396 -0
  98. data/node_modules/@babel/runtime/helpers/esm/defaults.js +14 -0
  99. data/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +22 -0
  100. data/node_modules/@babel/runtime/helpers/esm/defineProperty.js +14 -0
  101. data/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
  102. data/node_modules/@babel/runtime/helpers/esm/get.js +20 -0
  103. data/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
  104. data/node_modules/@babel/runtime/helpers/esm/inherits.js +15 -0
  105. data/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +6 -0
  106. data/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
  107. data/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +3 -0
  108. data/node_modules/@babel/runtime/helpers/esm/instanceof.js +7 -0
  109. data/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +5 -0
  110. data/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +51 -0
  111. data/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +3 -0
  112. data/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +12 -0
  113. data/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +3 -0
  114. data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
  115. data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +14 -0
  116. data/node_modules/@babel/runtime/helpers/esm/jsx.js +46 -0
  117. data/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
  118. data/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +5 -0
  119. data/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +3 -0
  120. data/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +3 -0
  121. data/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +3 -0
  122. data/node_modules/@babel/runtime/helpers/esm/objectSpread.js +19 -0
  123. data/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +39 -0
  124. data/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
  125. data/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
  126. data/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
  127. data/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +11 -0
  128. data/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +3 -0
  129. data/node_modules/@babel/runtime/helpers/esm/set.js +51 -0
  130. data/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  131. data/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
  132. data/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +7 -0
  133. data/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +7 -0
  134. data/node_modules/@babel/runtime/helpers/esm/superPropBase.js +9 -0
  135. data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +11 -0
  136. data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +8 -0
  137. data/node_modules/@babel/runtime/helpers/esm/tdz.js +3 -0
  138. data/node_modules/@babel/runtime/helpers/esm/temporalRef.js +5 -0
  139. data/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +1 -0
  140. data/node_modules/@babel/runtime/helpers/esm/toArray.js +7 -0
  141. data/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +7 -0
  142. data/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +13 -0
  143. data/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +6 -0
  144. data/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
  145. data/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
  146. data/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +6 -0
  147. data/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +37 -0
  148. data/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +65 -0
  149. data/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +3 -0
  150. data/node_modules/@babel/runtime/helpers/extends.js +21 -0
  151. data/node_modules/@babel/runtime/helpers/get.js +27 -0
  152. data/node_modules/@babel/runtime/helpers/getPrototypeOf.js +10 -0
  153. data/node_modules/@babel/runtime/helpers/inherits.js +19 -0
  154. data/node_modules/@babel/runtime/helpers/inheritsLoose.js +10 -0
  155. data/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +12 -0
  156. data/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +6 -0
  157. data/node_modules/@babel/runtime/helpers/instanceof.js +10 -0
  158. data/node_modules/@babel/runtime/helpers/interopRequireDefault.js +8 -0
  159. data/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +54 -0
  160. data/node_modules/@babel/runtime/helpers/isNativeFunction.js +6 -0
  161. data/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +15 -0
  162. data/node_modules/@babel/runtime/helpers/iterableToArray.js +6 -0
  163. data/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +32 -0
  164. data/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +17 -0
  165. data/node_modules/@babel/runtime/helpers/jsx.js +50 -0
  166. data/node_modules/@babel/runtime/helpers/maybeArrayLike.js +13 -0
  167. data/node_modules/@babel/runtime/helpers/newArrowCheck.js +8 -0
  168. data/node_modules/@babel/runtime/helpers/nonIterableRest.js +6 -0
  169. data/node_modules/@babel/runtime/helpers/nonIterableSpread.js +6 -0
  170. data/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +6 -0
  171. data/node_modules/@babel/runtime/helpers/objectSpread.js +23 -0
  172. data/node_modules/@babel/runtime/helpers/objectSpread2.js +42 -0
  173. data/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +23 -0
  174. data/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +17 -0
  175. data/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +16 -0
  176. data/node_modules/@babel/runtime/helpers/readOnlyError.js +6 -0
  177. data/node_modules/@babel/runtime/helpers/set.js +55 -0
  178. data/node_modules/@babel/runtime/helpers/setPrototypeOf.js +12 -0
  179. data/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +10 -0
  180. data/node_modules/@babel/runtime/helpers/slicedToArray.js +14 -0
  181. data/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +14 -0
  182. data/node_modules/@babel/runtime/helpers/superPropBase.js +13 -0
  183. data/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +14 -0
  184. data/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +11 -0
  185. data/node_modules/@babel/runtime/helpers/tdz.js +6 -0
  186. data/node_modules/@babel/runtime/helpers/temporalRef.js +10 -0
  187. data/node_modules/@babel/runtime/helpers/temporalUndefined.js +4 -0
  188. data/node_modules/@babel/runtime/helpers/toArray.js +14 -0
  189. data/node_modules/@babel/runtime/helpers/toConsumableArray.js +14 -0
  190. data/node_modules/@babel/runtime/helpers/toPrimitive.js +17 -0
  191. data/node_modules/@babel/runtime/helpers/toPropertyKey.js +11 -0
  192. data/node_modules/@babel/runtime/helpers/typeof.js +22 -0
  193. data/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +13 -0
  194. data/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +10 -0
  195. data/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +45 -0
  196. data/node_modules/@babel/runtime/helpers/wrapRegExp.js +72 -0
  197. data/node_modules/@babel/runtime/helpers/writeOnlyError.js +6 -0
  198. data/node_modules/@babel/runtime/package.json +848 -0
  199. data/node_modules/@babel/runtime/regenerator/index.js +1 -0
  200. data/node_modules/css-in-js-utils/Changelog.md +16 -0
  201. data/node_modules/css-in-js-utils/LICENSE +21 -0
  202. data/node_modules/css-in-js-utils/README.md +241 -0
  203. data/node_modules/css-in-js-utils/lib/__tests__/assignStyle-test.js +117 -0
  204. data/node_modules/css-in-js-utils/lib/__tests__/camelCaseProperty-test.js +15 -0
  205. data/node_modules/css-in-js-utils/lib/__tests__/cssifyDeclaration-test.js +15 -0
  206. data/node_modules/css-in-js-utils/lib/__tests__/cssifyObject-test.js +31 -0
  207. data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedProperty-test.js +19 -0
  208. data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedValue-test.js +19 -0
  209. data/node_modules/css-in-js-utils/lib/__tests__/isUnitlessProperty-test.js +43 -0
  210. data/node_modules/css-in-js-utils/lib/__tests__/normalizeProperty-test.js +21 -0
  211. data/node_modules/css-in-js-utils/lib/__tests__/resolveArrayValue-test.js +17 -0
  212. data/node_modules/css-in-js-utils/lib/__tests__/unprefixProperty-test.js +19 -0
  213. data/node_modules/css-in-js-utils/lib/__tests__/unprefixValue-test.js +20 -0
  214. data/node_modules/css-in-js-utils/lib/assignStyle.js +37 -0
  215. data/node_modules/css-in-js-utils/lib/camelCaseProperty.js +15 -0
  216. data/node_modules/css-in-js-utils/lib/cssifyDeclaration.js +17 -0
  217. data/node_modules/css-in-js-utils/lib/cssifyObject.js +34 -0
  218. data/node_modules/css-in-js-utils/lib/hyphenateProperty.js +17 -0
  219. data/node_modules/css-in-js-utils/lib/index.js +71 -0
  220. data/node_modules/css-in-js-utils/lib/isPrefixedProperty.js +12 -0
  221. data/node_modules/css-in-js-utils/lib/isPrefixedValue.js +12 -0
  222. data/node_modules/css-in-js-utils/lib/isUnitlessProperty.js +64 -0
  223. data/node_modules/css-in-js-utils/lib/normalizeProperty.js +21 -0
  224. data/node_modules/css-in-js-utils/lib/resolveArrayValue.js +19 -0
  225. data/node_modules/css-in-js-utils/lib/unprefixProperty.js +13 -0
  226. data/node_modules/css-in-js-utils/lib/unprefixValue.js +16 -0
  227. data/node_modules/css-in-js-utils/package.json +56 -0
  228. data/node_modules/css-tree/CHANGELOG.md +590 -0
  229. data/node_modules/css-tree/LICENSE +19 -0
  230. data/node_modules/css-tree/README.md +130 -0
  231. data/node_modules/css-tree/data/index.js +103 -0
  232. data/node_modules/css-tree/data/patch.json +721 -0
  233. data/node_modules/css-tree/dist/csstree.js +12606 -0
  234. data/node_modules/css-tree/dist/csstree.min.js +1 -0
  235. data/node_modules/css-tree/lib/common/List.js +576 -0
  236. data/node_modules/css-tree/lib/common/OffsetToLocation.js +91 -0
  237. data/node_modules/css-tree/lib/common/SyntaxError.js +82 -0
  238. data/node_modules/css-tree/lib/common/TokenStream.js +219 -0
  239. data/node_modules/css-tree/lib/common/adopt-buffer.js +10 -0
  240. data/node_modules/css-tree/lib/convertor/create.js +28 -0
  241. data/node_modules/css-tree/lib/convertor/index.js +3 -0
  242. data/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +14 -0
  243. data/node_modules/css-tree/lib/definition-syntax/generate.js +129 -0
  244. data/node_modules/css-tree/lib/definition-syntax/index.js +6 -0
  245. data/node_modules/css-tree/lib/definition-syntax/parse.js +568 -0
  246. data/node_modules/css-tree/lib/definition-syntax/tokenizer.js +55 -0
  247. data/node_modules/css-tree/lib/definition-syntax/walk.js +52 -0
  248. data/node_modules/css-tree/lib/generator/create.js +66 -0
  249. data/node_modules/css-tree/lib/generator/index.js +4 -0
  250. data/node_modules/css-tree/lib/generator/sourceMap.js +95 -0
  251. data/node_modules/css-tree/lib/index.js +1 -0
  252. data/node_modules/css-tree/lib/lexer/Lexer.js +466 -0
  253. data/node_modules/css-tree/lib/lexer/error.js +127 -0
  254. data/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +236 -0
  255. data/node_modules/css-tree/lib/lexer/generic-urange.js +159 -0
  256. data/node_modules/css-tree/lib/lexer/generic.js +585 -0
  257. data/node_modules/css-tree/lib/lexer/index.js +3 -0
  258. data/node_modules/css-tree/lib/lexer/match-graph.js +455 -0
  259. data/node_modules/css-tree/lib/lexer/match.js +639 -0
  260. data/node_modules/css-tree/lib/lexer/prepare-tokens.js +73 -0
  261. data/node_modules/css-tree/lib/lexer/search.js +65 -0
  262. data/node_modules/css-tree/lib/lexer/structure.js +163 -0
  263. data/node_modules/css-tree/lib/lexer/trace.js +79 -0
  264. data/node_modules/css-tree/lib/parser/create.js +304 -0
  265. data/node_modules/css-tree/lib/parser/index.js +4 -0
  266. data/node_modules/css-tree/lib/parser/sequence.js +54 -0
  267. data/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
  268. data/node_modules/css-tree/lib/syntax/atrule/import.js +40 -0
  269. data/node_modules/css-tree/lib/syntax/atrule/index.js +7 -0
  270. data/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
  271. data/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
  272. data/node_modules/css-tree/lib/syntax/atrule/supports.js +89 -0
  273. data/node_modules/css-tree/lib/syntax/config/lexer.js +9 -0
  274. data/node_modules/css-tree/lib/syntax/config/mix.js +140 -0
  275. data/node_modules/css-tree/lib/syntax/config/parser.js +25 -0
  276. data/node_modules/css-tree/lib/syntax/config/walker.js +3 -0
  277. data/node_modules/css-tree/lib/syntax/create.js +77 -0
  278. data/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
  279. data/node_modules/css-tree/lib/syntax/function/var.js +43 -0
  280. data/node_modules/css-tree/lib/syntax/index.js +21 -0
  281. data/node_modules/css-tree/lib/syntax/node/AnPlusB.js +297 -0
  282. data/node_modules/css-tree/lib/syntax/node/Atrule.js +107 -0
  283. data/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +51 -0
  284. data/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +165 -0
  285. data/node_modules/css-tree/lib/syntax/node/Block.js +91 -0
  286. data/node_modules/css-tree/lib/syntax/node/Brackets.js +34 -0
  287. data/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
  288. data/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
  289. data/node_modules/css-tree/lib/syntax/node/ClassSelector.js +29 -0
  290. data/node_modules/css-tree/lib/syntax/node/Combinator.js +55 -0
  291. data/node_modules/css-tree/lib/syntax/node/Comment.js +36 -0
  292. data/node_modules/css-tree/lib/syntax/node/Declaration.js +169 -0
  293. data/node_modules/css-tree/lib/syntax/node/DeclarationList.js +49 -0
  294. data/node_modules/css-tree/lib/syntax/node/Dimension.js +29 -0
  295. data/node_modules/css-tree/lib/syntax/node/Function.js +40 -0
  296. data/node_modules/css-tree/lib/syntax/node/Hash.js +26 -0
  297. data/node_modules/css-tree/lib/syntax/node/IdSelector.js +27 -0
  298. data/node_modules/css-tree/lib/syntax/node/Identifier.js +20 -0
  299. data/node_modules/css-tree/lib/syntax/node/MediaFeature.js +76 -0
  300. data/node_modules/css-tree/lib/syntax/node/MediaQuery.js +68 -0
  301. data/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +36 -0
  302. data/node_modules/css-tree/lib/syntax/node/Nth.js +51 -0
  303. data/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
  304. data/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
  305. data/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
  306. data/node_modules/css-tree/lib/syntax/node/Percentage.js +27 -0
  307. data/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +61 -0
  308. data/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +62 -0
  309. data/node_modules/css-tree/lib/syntax/node/Ratio.js +66 -0
  310. data/node_modules/css-tree/lib/syntax/node/Raw.js +87 -0
  311. data/node_modules/css-tree/lib/syntax/node/Rule.js +54 -0
  312. data/node_modules/css-tree/lib/syntax/node/Selector.js +32 -0
  313. data/node_modules/css-tree/lib/syntax/node/SelectorList.js +39 -0
  314. data/node_modules/css-tree/lib/syntax/node/String.js +18 -0
  315. data/node_modules/css-tree/lib/syntax/node/StyleSheet.js +81 -0
  316. data/node_modules/css-tree/lib/syntax/node/TypeSelector.js +53 -0
  317. data/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +173 -0
  318. data/node_modules/css-tree/lib/syntax/node/Url.js +69 -0
  319. data/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
  320. data/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +26 -0
  321. data/node_modules/css-tree/lib/syntax/node/index.js +42 -0
  322. data/node_modules/css-tree/lib/syntax/pseudo/common/nth.js +9 -0
  323. data/node_modules/css-tree/lib/syntax/pseudo/common/nthWithOfClause.js +9 -0
  324. data/node_modules/css-tree/lib/syntax/pseudo/common/selectorList.js +7 -0
  325. data/node_modules/css-tree/lib/syntax/pseudo/dir.js +7 -0
  326. data/node_modules/css-tree/lib/syntax/pseudo/has.js +7 -0
  327. data/node_modules/css-tree/lib/syntax/pseudo/index.js +12 -0
  328. data/node_modules/css-tree/lib/syntax/pseudo/lang.js +7 -0
  329. data/node_modules/css-tree/lib/syntax/pseudo/matches.js +1 -0
  330. data/node_modules/css-tree/lib/syntax/pseudo/not.js +1 -0
  331. data/node_modules/css-tree/lib/syntax/pseudo/nth-child.js +1 -0
  332. data/node_modules/css-tree/lib/syntax/pseudo/nth-last-child.js +1 -0
  333. data/node_modules/css-tree/lib/syntax/pseudo/nth-last-of-type.js +1 -0
  334. data/node_modules/css-tree/lib/syntax/pseudo/nth-of-type.js +1 -0
  335. data/node_modules/css-tree/lib/syntax/pseudo/slotted.js +7 -0
  336. data/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +3 -0
  337. data/node_modules/css-tree/lib/syntax/scope/default.js +87 -0
  338. data/node_modules/css-tree/lib/syntax/scope/index.js +5 -0
  339. data/node_modules/css-tree/lib/syntax/scope/selector.js +80 -0
  340. data/node_modules/css-tree/lib/syntax/scope/value.js +5 -0
  341. data/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +249 -0
  342. data/node_modules/css-tree/lib/tokenizer/const.js +40 -0
  343. data/node_modules/css-tree/lib/tokenizer/index.js +591 -0
  344. data/node_modules/css-tree/lib/tokenizer/utils.js +243 -0
  345. data/node_modules/css-tree/lib/utils/clone.js +21 -0
  346. data/node_modules/css-tree/lib/utils/createCustomError.js +17 -0
  347. data/node_modules/css-tree/lib/utils/names.js +104 -0
  348. data/node_modules/css-tree/lib/walker/create.js +284 -0
  349. data/node_modules/css-tree/lib/walker/index.js +4 -0
  350. data/node_modules/css-tree/package.json +60 -0
  351. data/node_modules/csstype/LICENSE +19 -0
  352. data/node_modules/csstype/README.md +273 -0
  353. data/node_modules/csstype/index.d.ts +20553 -0
  354. data/node_modules/csstype/index.js.flow +6278 -0
  355. data/node_modules/csstype/package.json +62 -0
  356. data/node_modules/error-stack-parser/CHANGELOG.md +53 -0
  357. data/node_modules/error-stack-parser/LICENSE +19 -0
  358. data/node_modules/error-stack-parser/README.md +44 -0
  359. data/node_modules/error-stack-parser/dist/error-stack-parser.js +202 -0
  360. data/node_modules/error-stack-parser/dist/error-stack-parser.min.js +2 -0
  361. data/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map +1 -0
  362. data/node_modules/error-stack-parser/error-stack-parser.d.ts +66 -0
  363. data/node_modules/error-stack-parser/error-stack-parser.js +202 -0
  364. data/node_modules/error-stack-parser/package.json +63 -0
  365. data/node_modules/fastest-stable-stringify/.eslintrc.yml +26 -0
  366. data/node_modules/fastest-stable-stringify/.travis.yml +7 -0
  367. data/node_modules/fastest-stable-stringify/LICENSE +18 -0
  368. data/node_modules/fastest-stable-stringify/README.md +44 -0
  369. data/node_modules/fastest-stable-stringify/benchmark/index.js +32 -0
  370. data/node_modules/fastest-stable-stringify/benchmark/test.json +215 -0
  371. data/node_modules/fastest-stable-stringify/example/key_cmp.js +7 -0
  372. data/node_modules/fastest-stable-stringify/example/nested.js +3 -0
  373. data/node_modules/fastest-stable-stringify/example/str.js +3 -0
  374. data/node_modules/fastest-stable-stringify/example/value_cmp.js +7 -0
  375. data/node_modules/fastest-stable-stringify/index.js +60 -0
  376. data/node_modules/fastest-stable-stringify/package.json +54 -0
  377. data/node_modules/fastest-stable-stringify/test/bench.js +20 -0
  378. data/node_modules/fastest-stable-stringify/test/nested.js +24 -0
  379. data/node_modules/fastest-stable-stringify/test/str.js +52 -0
  380. data/node_modules/fastest-stable-stringify/test/to-json.js +22 -0
  381. data/node_modules/hyphenate-style-name/LICENSE +28 -0
  382. data/node_modules/hyphenate-style-name/README.md +28 -0
  383. data/node_modules/hyphenate-style-name/index.cjs.js +21 -0
  384. data/node_modules/hyphenate-style-name/index.js +19 -0
  385. data/node_modules/hyphenate-style-name/package.json +42 -0
  386. data/node_modules/inline-style-prefixer/CHANGELOG.md +195 -0
  387. data/node_modules/inline-style-prefixer/LICENSE +22 -0
  388. data/node_modules/inline-style-prefixer/README.md +100 -0
  389. data/node_modules/inline-style-prefixer/es/createPrefixer.js +47 -0
  390. data/node_modules/inline-style-prefixer/es/data.js +12 -0
  391. data/node_modules/inline-style-prefixer/es/generator/generatePluginList.js +21 -0
  392. data/node_modules/inline-style-prefixer/es/generator/generatePrefixMap.js +75 -0
  393. data/node_modules/inline-style-prefixer/es/generator/index.js +69 -0
  394. data/node_modules/inline-style-prefixer/es/generator/maps/pluginMap.js +108 -0
  395. data/node_modules/inline-style-prefixer/es/generator/maps/propertyMap.js +38 -0
  396. data/node_modules/inline-style-prefixer/es/index.js +26 -0
  397. data/node_modules/inline-style-prefixer/es/plugins/backgroundClip.js +7 -0
  398. data/node_modules/inline-style-prefixer/es/plugins/calc.js +11 -0
  399. data/node_modules/inline-style-prefixer/es/plugins/crossFade.js +12 -0
  400. data/node_modules/inline-style-prefixer/es/plugins/cursor.js +16 -0
  401. data/node_modules/inline-style-prefixer/es/plugins/filter.js +12 -0
  402. data/node_modules/inline-style-prefixer/es/plugins/flex.js +10 -0
  403. data/node_modules/inline-style-prefixer/es/plugins/flexboxIE.js +67 -0
  404. data/node_modules/inline-style-prefixer/es/plugins/flexboxOld.js +33 -0
  405. data/node_modules/inline-style-prefixer/es/plugins/gradient.js +14 -0
  406. data/node_modules/inline-style-prefixer/es/plugins/grid.js +129 -0
  407. data/node_modules/inline-style-prefixer/es/plugins/imageSet.js +12 -0
  408. data/node_modules/inline-style-prefixer/es/plugins/index.js +17 -0
  409. data/node_modules/inline-style-prefixer/es/plugins/logical.js +35 -0
  410. data/node_modules/inline-style-prefixer/es/plugins/position.js +5 -0
  411. data/node_modules/inline-style-prefixer/es/plugins/sizing.js +26 -0
  412. data/node_modules/inline-style-prefixer/es/plugins/transition.js +75 -0
  413. data/node_modules/inline-style-prefixer/es/utils/addNewValuesOnly.js +15 -0
  414. data/node_modules/inline-style-prefixer/es/utils/capitalizeString.js +3 -0
  415. data/node_modules/inline-style-prefixer/es/utils/isObject.js +3 -0
  416. data/node_modules/inline-style-prefixer/es/utils/prefixProperty.js +22 -0
  417. data/node_modules/inline-style-prefixer/es/utils/prefixValue.js +11 -0
  418. data/node_modules/inline-style-prefixer/lib/createPrefixer.js +66 -0
  419. data/node_modules/inline-style-prefixer/lib/data.js +17 -0
  420. data/node_modules/inline-style-prefixer/lib/generator/generatePluginList.js +32 -0
  421. data/node_modules/inline-style-prefixer/lib/generator/generatePrefixMap.js +86 -0
  422. data/node_modules/inline-style-prefixer/lib/generator/index.js +85 -0
  423. data/node_modules/inline-style-prefixer/lib/generator/maps/pluginMap.js +113 -0
  424. data/node_modules/inline-style-prefixer/lib/generator/maps/propertyMap.js +43 -0
  425. data/node_modules/inline-style-prefixer/lib/index.js +78 -0
  426. data/node_modules/inline-style-prefixer/lib/plugins/backgroundClip.js +13 -0
  427. data/node_modules/inline-style-prefixer/lib/plugins/calc.js +21 -0
  428. data/node_modules/inline-style-prefixer/lib/plugins/crossFade.js +22 -0
  429. data/node_modules/inline-style-prefixer/lib/plugins/cursor.js +22 -0
  430. data/node_modules/inline-style-prefixer/lib/plugins/filter.js +22 -0
  431. data/node_modules/inline-style-prefixer/lib/plugins/flex.js +16 -0
  432. data/node_modules/inline-style-prefixer/lib/plugins/flexboxIE.js +73 -0
  433. data/node_modules/inline-style-prefixer/lib/plugins/flexboxOld.js +39 -0
  434. data/node_modules/inline-style-prefixer/lib/plugins/gradient.js +26 -0
  435. data/node_modules/inline-style-prefixer/lib/plugins/grid.js +136 -0
  436. data/node_modules/inline-style-prefixer/lib/plugins/imageSet.js +22 -0
  437. data/node_modules/inline-style-prefixer/lib/plugins/index.js +69 -0
  438. data/node_modules/inline-style-prefixer/lib/plugins/logical.js +41 -0
  439. data/node_modules/inline-style-prefixer/lib/plugins/position.js +11 -0
  440. data/node_modules/inline-style-prefixer/lib/plugins/sizing.js +32 -0
  441. data/node_modules/inline-style-prefixer/lib/plugins/transition.js +92 -0
  442. data/node_modules/inline-style-prefixer/lib/utils/addNewValuesOnly.js +21 -0
  443. data/node_modules/inline-style-prefixer/lib/utils/capitalizeString.js +9 -0
  444. data/node_modules/inline-style-prefixer/lib/utils/isObject.js +9 -0
  445. data/node_modules/inline-style-prefixer/lib/utils/prefixProperty.js +32 -0
  446. data/node_modules/inline-style-prefixer/lib/utils/prefixValue.js +17 -0
  447. data/node_modules/inline-style-prefixer/package.json +79 -0
  448. data/node_modules/isobject/LICENSE +21 -0
  449. data/node_modules/isobject/README.md +122 -0
  450. data/node_modules/isobject/index.d.ts +5 -0
  451. data/node_modules/isobject/index.js +12 -0
  452. data/node_modules/isobject/package.json +74 -0
  453. data/node_modules/js-tokens/CHANGELOG.md +151 -0
  454. data/node_modules/js-tokens/LICENSE +21 -0
  455. data/node_modules/js-tokens/README.md +240 -0
  456. data/node_modules/js-tokens/index.js +23 -0
  457. data/node_modules/js-tokens/package.json +30 -0
  458. data/node_modules/loose-envify/LICENSE +21 -0
  459. data/node_modules/loose-envify/README.md +45 -0
  460. data/node_modules/loose-envify/cli.js +16 -0
  461. data/node_modules/loose-envify/custom.js +4 -0
  462. data/node_modules/loose-envify/index.js +3 -0
  463. data/node_modules/loose-envify/loose-envify.js +36 -0
  464. data/node_modules/loose-envify/package.json +36 -0
  465. data/node_modules/loose-envify/replace.js +65 -0
  466. data/node_modules/mdn-data/LICENSE +116 -0
  467. data/node_modules/mdn-data/README.md +56 -0
  468. data/node_modules/mdn-data/api/index.js +3 -0
  469. data/node_modules/mdn-data/api/inheritance.json +2681 -0
  470. data/node_modules/mdn-data/api/inheritance.schema.json +31 -0
  471. data/node_modules/mdn-data/css/at-rules.json +560 -0
  472. data/node_modules/mdn-data/css/at-rules.schema.json +132 -0
  473. data/node_modules/mdn-data/css/definitions.json +77 -0
  474. data/node_modules/mdn-data/css/index.js +8 -0
  475. data/node_modules/mdn-data/css/properties.json +9163 -0
  476. data/node_modules/mdn-data/css/properties.schema.json +402 -0
  477. data/node_modules/mdn-data/css/selectors.json +927 -0
  478. data/node_modules/mdn-data/css/selectors.schema.json +36 -0
  479. data/node_modules/mdn-data/css/syntaxes.json +761 -0
  480. data/node_modules/mdn-data/css/syntaxes.schema.json +15 -0
  481. data/node_modules/mdn-data/css/types.json +265 -0
  482. data/node_modules/mdn-data/css/types.schema.json +32 -0
  483. data/node_modules/mdn-data/css/units.json +199 -0
  484. data/node_modules/mdn-data/css/units.schema.json +28 -0
  485. data/node_modules/mdn-data/index.js +5 -0
  486. data/node_modules/mdn-data/l10n/css.json +1567 -0
  487. data/node_modules/mdn-data/l10n/index.js +3 -0
  488. data/node_modules/mdn-data/package.json +39 -0
  489. data/node_modules/nano-css/.circleci/config.yml +85 -0
  490. data/node_modules/nano-css/.eslintrc.yml +27 -0
  491. data/node_modules/nano-css/.github/FUNDING.yml +3 -0
  492. data/node_modules/nano-css/.github/workflows/nodejs.yml +23 -0
  493. data/node_modules/nano-css/CHANGELOG.md +362 -0
  494. data/node_modules/nano-css/LICENSE +24 -0
  495. data/node_modules/nano-css/README.md +70 -0
  496. data/node_modules/nano-css/addon/__dev__/warnOnMissingDependencies.js +25 -0
  497. data/node_modules/nano-css/addon/__tests__/__snapshots__/reset.test.js.snap +407 -0
  498. data/node_modules/nano-css/addon/__tests__/__snapshots__/tachyons.test.js.snap +43 -0
  499. data/node_modules/nano-css/addon/__tests__/amp.server.dev.test.js +6 -0
  500. data/node_modules/nano-css/addon/__tests__/amp.server.test.js +223 -0
  501. data/node_modules/nano-css/addon/__tests__/atoms.dev.test.js +5 -0
  502. data/node_modules/nano-css/addon/__tests__/atoms.server.dev.test.js +8 -0
  503. data/node_modules/nano-css/addon/__tests__/atoms.server.test.js +6 -0
  504. data/node_modules/nano-css/addon/__tests__/atoms.test.js +49 -0
  505. data/node_modules/nano-css/addon/__tests__/cssom.server.test.js +12 -0
  506. data/node_modules/nano-css/addon/__tests__/emmet/emmet.dev.test.js +5 -0
  507. data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.dev.test.js +8 -0
  508. data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.test.js +6 -0
  509. data/node_modules/nano-css/addon/__tests__/emmet/emmet.test.js +219 -0
  510. data/node_modules/nano-css/addon/__tests__/env.js +6 -0
  511. data/node_modules/nano-css/addon/__tests__/extract.server.test.js +159 -0
  512. data/node_modules/nano-css/addon/__tests__/index.server.dev.test.js +6 -0
  513. data/node_modules/nano-css/addon/__tests__/index.server.test.js +4 -0
  514. data/node_modules/nano-css/addon/__tests__/index.test.js +257 -0
  515. data/node_modules/nano-css/addon/__tests__/jsx.dev.test.js +5 -0
  516. data/node_modules/nano-css/addon/__tests__/jsx.server.dev.test.js +6 -0
  517. data/node_modules/nano-css/addon/__tests__/jsx.server.test.js +4 -0
  518. data/node_modules/nano-css/addon/__tests__/jsx.test.js +33 -0
  519. data/node_modules/nano-css/addon/__tests__/keyframes.dev.test.js +5 -0
  520. data/node_modules/nano-css/addon/__tests__/keyframes.server.dev.test.js +6 -0
  521. data/node_modules/nano-css/addon/__tests__/keyframes.server.test.js +4 -0
  522. data/node_modules/nano-css/addon/__tests__/keyframes.test.js +131 -0
  523. data/node_modules/nano-css/addon/__tests__/limit.server.test.js +54 -0
  524. data/node_modules/nano-css/addon/__tests__/nesting.test.js +85 -0
  525. data/node_modules/nano-css/addon/__tests__/prefixer.test.js +121 -0
  526. data/node_modules/nano-css/addon/__tests__/put.dev.test.js +5 -0
  527. data/node_modules/nano-css/addon/__tests__/put.server.dev.test.js +6 -0
  528. data/node_modules/nano-css/addon/__tests__/put.server.test.js +4 -0
  529. data/node_modules/nano-css/addon/__tests__/put.test.js +75 -0
  530. data/node_modules/nano-css/addon/__tests__/reset.test.js +38 -0
  531. data/node_modules/nano-css/addon/__tests__/rule.dev.test.js +5 -0
  532. data/node_modules/nano-css/addon/__tests__/rule.server.dev.test.js +7 -0
  533. data/node_modules/nano-css/addon/__tests__/rule.server.test.js +5 -0
  534. data/node_modules/nano-css/addon/__tests__/rule.test.js +57 -0
  535. data/node_modules/nano-css/addon/__tests__/setup.js +7 -0
  536. data/node_modules/nano-css/addon/__tests__/sheet.test.js +74 -0
  537. data/node_modules/nano-css/addon/__tests__/snake.test.js +124 -0
  538. data/node_modules/nano-css/addon/__tests__/tachyons.test.js +45 -0
  539. data/node_modules/nano-css/addon/__tests__/units.dev.test.js +5 -0
  540. data/node_modules/nano-css/addon/__tests__/units.server.dev.test.js +6 -0
  541. data/node_modules/nano-css/addon/__tests__/units.server.test.js +4 -0
  542. data/node_modules/nano-css/addon/__tests__/units.test.js +41 -0
  543. data/node_modules/nano-css/addon/__tests__/validate.dev.test.js +5 -0
  544. data/node_modules/nano-css/addon/__tests__/validate.test.js +69 -0
  545. data/node_modules/nano-css/addon/__tests__/vcssom.server.test.js +14 -0
  546. data/node_modules/nano-css/addon/__tests__/virtual.dev.test.js +5 -0
  547. data/node_modules/nano-css/addon/__tests__/virtual.server.dev.test.js +6 -0
  548. data/node_modules/nano-css/addon/__tests__/virtual.server.test.js +4 -0
  549. data/node_modules/nano-css/addon/__tests__/virtual.test.js +225 -0
  550. data/node_modules/nano-css/addon/amp.d.ts +5 -0
  551. data/node_modules/nano-css/addon/amp.js +156 -0
  552. data/node_modules/nano-css/addon/animate/fadeIn.js +22 -0
  553. data/node_modules/nano-css/addon/animate/fadeInDown.js +25 -0
  554. data/node_modules/nano-css/addon/animate/fadeInScale.js +25 -0
  555. data/node_modules/nano-css/addon/animate/fadeOut.js +23 -0
  556. data/node_modules/nano-css/addon/animate/fadeOutScale.js +21 -0
  557. data/node_modules/nano-css/addon/array.d.ts +5 -0
  558. data/node_modules/nano-css/addon/array.js +33 -0
  559. data/node_modules/nano-css/addon/atoms.d.ts +243 -0
  560. data/node_modules/nano-css/addon/atoms.js +63 -0
  561. data/node_modules/nano-css/addon/cache.d.ts +8 -0
  562. data/node_modules/nano-css/addon/cache.js +17 -0
  563. data/node_modules/nano-css/addon/component.d.ts +7 -0
  564. data/node_modules/nano-css/addon/component.js +26 -0
  565. data/node_modules/nano-css/addon/cssom.d.ts +17 -0
  566. data/node_modules/nano-css/addon/cssom.js +36 -0
  567. data/node_modules/nano-css/addon/decorator.d.ts +7 -0
  568. data/node_modules/nano-css/addon/decorator.js +43 -0
  569. data/node_modules/nano-css/addon/drule.d.ts +8 -0
  570. data/node_modules/nano-css/addon/drule.js +27 -0
  571. data/node_modules/nano-css/addon/dsheet.d.ts +8 -0
  572. data/node_modules/nano-css/addon/dsheet.js +36 -0
  573. data/node_modules/nano-css/addon/emmet.d.ts +614 -0
  574. data/node_modules/nano-css/addon/emmet.js +177 -0
  575. data/node_modules/nano-css/addon/extract.d.ts +5 -0
  576. data/node_modules/nano-css/addon/extract.js +59 -0
  577. data/node_modules/nano-css/addon/global.d.ts +8 -0
  578. data/node_modules/nano-css/addon/global.js +19 -0
  579. data/node_modules/nano-css/addon/googleFont.d.ts +8 -0
  580. data/node_modules/nano-css/addon/googleFont.js +43 -0
  581. data/node_modules/nano-css/addon/hydrate.d.ts +7 -0
  582. data/node_modules/nano-css/addon/hydrate.js +28 -0
  583. data/node_modules/nano-css/addon/hyperstyle.js +27 -0
  584. data/node_modules/nano-css/addon/important.js +38 -0
  585. data/node_modules/nano-css/addon/jsx.js +60 -0
  586. data/node_modules/nano-css/addon/keyframes.d.ts +34 -0
  587. data/node_modules/nano-css/addon/keyframes.js +61 -0
  588. data/node_modules/nano-css/addon/limit.js +26 -0
  589. data/node_modules/nano-css/addon/nesting.js +37 -0
  590. data/node_modules/nano-css/addon/pipe.js +57 -0
  591. data/node_modules/nano-css/addon/prefixer.js +79 -0
  592. data/node_modules/nano-css/addon/ref.js +87 -0
  593. data/node_modules/nano-css/addon/reset/EricMeyer.js +48 -0
  594. data/node_modules/nano-css/addon/reset/EricMeyerCondensed.js +44 -0
  595. data/node_modules/nano-css/addon/reset/Minimalistic.js +16 -0
  596. data/node_modules/nano-css/addon/reset/Minimalistic2.js +17 -0
  597. data/node_modules/nano-css/addon/reset/Minimalistic3.js +18 -0
  598. data/node_modules/nano-css/addon/reset/Normalize.js +83 -0
  599. data/node_modules/nano-css/addon/reset/PoorMan.js +25 -0
  600. data/node_modules/nano-css/addon/reset/ShaunInman.js +42 -0
  601. data/node_modules/nano-css/addon/reset/Siolon.js +34 -0
  602. data/node_modules/nano-css/addon/reset/Tantek.js +31 -0
  603. data/node_modules/nano-css/addon/reset/Tripoli.js +75 -0
  604. data/node_modules/nano-css/addon/reset/Universal.js +23 -0
  605. data/node_modules/nano-css/addon/reset/Yahoo.js +43 -0
  606. data/node_modules/nano-css/addon/reset-font.js +24 -0
  607. data/node_modules/nano-css/addon/rtl.js +15 -0
  608. data/node_modules/nano-css/addon/rule.d.ts +26 -0
  609. data/node_modules/nano-css/addon/rule.js +39 -0
  610. data/node_modules/nano-css/addon/sheet.d.ts +22 -0
  611. data/node_modules/nano-css/addon/sheet.js +45 -0
  612. data/node_modules/nano-css/addon/snake.js +141 -0
  613. data/node_modules/nano-css/addon/sourcemaps.js +96 -0
  614. data/node_modules/nano-css/addon/spread.js +23 -0
  615. data/node_modules/nano-css/addon/stable.js +7 -0
  616. data/node_modules/nano-css/addon/style.js +33 -0
  617. data/node_modules/nano-css/addon/styled.js +161 -0
  618. data/node_modules/nano-css/addon/stylis/plugin-onRule.js +43 -0
  619. data/node_modules/nano-css/addon/stylis.js +28 -0
  620. data/node_modules/nano-css/addon/tachyons.js +215 -0
  621. data/node_modules/nano-css/addon/unitless.js +78 -0
  622. data/node_modules/nano-css/addon/units.d.ts +89 -0
  623. data/node_modules/nano-css/addon/units.js +27 -0
  624. data/node_modules/nano-css/addon/useStyles.js +24 -0
  625. data/node_modules/nano-css/addon/util/cloneElement.js +11 -0
  626. data/node_modules/nano-css/addon/util/transformComponentDynamic.js +50 -0
  627. data/node_modules/nano-css/addon/util/transformComponentStatic.js +26 -0
  628. data/node_modules/nano-css/addon/validate.js +82 -0
  629. data/node_modules/nano-css/addon/vcssom/__tests__/cssToTree.test.js +159 -0
  630. data/node_modules/nano-css/addon/vcssom/cssToTree.d.ts +15 -0
  631. data/node_modules/nano-css/addon/vcssom/cssToTree.js +42 -0
  632. data/node_modules/nano-css/addon/vcssom/removeRule.d.ts +3 -0
  633. data/node_modules/nano-css/addon/vcssom/removeRule.js +15 -0
  634. data/node_modules/nano-css/addon/vcssom.d.ts +72 -0
  635. data/node_modules/nano-css/addon/vcssom.js +97 -0
  636. data/node_modules/nano-css/addon/virtual.js +107 -0
  637. data/node_modules/nano-css/addon/withStyles.js +32 -0
  638. data/node_modules/nano-css/index.d.ts +4 -0
  639. data/node_modules/nano-css/index.js +138 -0
  640. data/node_modules/nano-css/package.json +145 -0
  641. data/node_modules/nano-css/preset/react.js +43 -0
  642. data/node_modules/nano-css/preset/sheet.d.ts +5 -0
  643. data/node_modules/nano-css/preset/sheet.js +27 -0
  644. data/node_modules/nano-css/preset/vdom.js +40 -0
  645. data/node_modules/nano-css/prettier.config.js +13 -0
  646. data/node_modules/nano-css/renovate.json +3 -0
  647. data/node_modules/nano-css/types/common.d.ts +14 -0
  648. data/node_modules/nano-css/types/demo.ts +7 -0
  649. data/node_modules/nano-css/types/nano.d.ts +171 -0
  650. data/node_modules/object-assign/index.js +90 -0
  651. data/node_modules/object-assign/license +21 -0
  652. data/node_modules/object-assign/package.json +42 -0
  653. data/node_modules/object-assign/readme.md +61 -0
  654. data/node_modules/preact/LICENSE +21 -0
  655. data/node_modules/preact/README.md +187 -0
  656. data/node_modules/preact/compat/LICENSE +21 -0
  657. data/node_modules/preact/compat/dist/compat.js +2 -0
  658. data/node_modules/preact/compat/dist/compat.js.map +1 -0
  659. data/node_modules/preact/compat/dist/compat.mjs +2 -0
  660. data/node_modules/preact/compat/dist/compat.mjs.map +1 -0
  661. data/node_modules/preact/compat/dist/compat.modern.js +2 -0
  662. data/node_modules/preact/compat/dist/compat.modern.js.map +1 -0
  663. data/node_modules/preact/compat/dist/compat.module.js +2 -0
  664. data/node_modules/preact/compat/dist/compat.module.js.map +1 -0
  665. data/node_modules/preact/compat/dist/compat.umd.js +2 -0
  666. data/node_modules/preact/compat/dist/compat.umd.js.map +1 -0
  667. data/node_modules/preact/compat/jsx-dev-runtime.js +1 -0
  668. data/node_modules/preact/compat/jsx-dev-runtime.mjs +1 -0
  669. data/node_modules/preact/compat/jsx-runtime.js +1 -0
  670. data/node_modules/preact/compat/jsx-runtime.mjs +1 -0
  671. data/node_modules/preact/compat/package.json +19 -0
  672. data/node_modules/preact/compat/scheduler.js +15 -0
  673. data/node_modules/preact/compat/scheduler.mjs +23 -0
  674. data/node_modules/preact/compat/server.js +15 -0
  675. data/node_modules/preact/compat/server.mjs +4 -0
  676. data/node_modules/preact/compat/src/Children.js +21 -0
  677. data/node_modules/preact/compat/src/PureComponent.js +15 -0
  678. data/node_modules/preact/compat/src/forwardRef.js +51 -0
  679. data/node_modules/preact/compat/src/index.d.ts +140 -0
  680. data/node_modules/preact/compat/src/index.js +187 -0
  681. data/node_modules/preact/compat/src/internal.d.ts +47 -0
  682. data/node_modules/preact/compat/src/memo.js +34 -0
  683. data/node_modules/preact/compat/src/portals.js +80 -0
  684. data/node_modules/preact/compat/src/render.js +219 -0
  685. data/node_modules/preact/compat/src/suspense-list.d.ts +14 -0
  686. data/node_modules/preact/compat/src/suspense-list.js +126 -0
  687. data/node_modules/preact/compat/src/suspense.d.ts +15 -0
  688. data/node_modules/preact/compat/src/suspense.js +270 -0
  689. data/node_modules/preact/compat/src/util.js +28 -0
  690. data/node_modules/preact/compat/test-utils.js +1 -0
  691. data/node_modules/preact/debug/LICENSE +21 -0
  692. data/node_modules/preact/debug/dist/debug.js +2 -0
  693. data/node_modules/preact/debug/dist/debug.js.map +1 -0
  694. data/node_modules/preact/debug/dist/debug.mjs +2 -0
  695. data/node_modules/preact/debug/dist/debug.mjs.map +1 -0
  696. data/node_modules/preact/debug/dist/debug.modern.js +2 -0
  697. data/node_modules/preact/debug/dist/debug.modern.js.map +1 -0
  698. data/node_modules/preact/debug/dist/debug.module.js +2 -0
  699. data/node_modules/preact/debug/dist/debug.module.js.map +1 -0
  700. data/node_modules/preact/debug/dist/debug.umd.js +2 -0
  701. data/node_modules/preact/debug/dist/debug.umd.js.map +1 -0
  702. data/node_modules/preact/debug/package.json +18 -0
  703. data/node_modules/preact/debug/src/check-props.js +54 -0
  704. data/node_modules/preact/debug/src/component-stack.js +146 -0
  705. data/node_modules/preact/debug/src/constants.js +3 -0
  706. data/node_modules/preact/debug/src/debug.js +442 -0
  707. data/node_modules/preact/debug/src/index.js +6 -0
  708. data/node_modules/preact/debug/src/internal.d.ts +82 -0
  709. data/node_modules/preact/debug/src/util.js +11 -0
  710. data/node_modules/preact/devtools/LICENSE +21 -0
  711. data/node_modules/preact/devtools/dist/devtools.js +2 -0
  712. data/node_modules/preact/devtools/dist/devtools.js.map +1 -0
  713. data/node_modules/preact/devtools/dist/devtools.mjs +2 -0
  714. data/node_modules/preact/devtools/dist/devtools.mjs.map +1 -0
  715. data/node_modules/preact/devtools/dist/devtools.modern.js +2 -0
  716. data/node_modules/preact/devtools/dist/devtools.modern.js.map +1 -0
  717. data/node_modules/preact/devtools/dist/devtools.module.js +2 -0
  718. data/node_modules/preact/devtools/dist/devtools.module.js.map +1 -0
  719. data/node_modules/preact/devtools/dist/devtools.umd.js +2 -0
  720. data/node_modules/preact/devtools/dist/devtools.umd.js.map +1 -0
  721. data/node_modules/preact/devtools/package.json +16 -0
  722. data/node_modules/preact/devtools/src/devtools.js +10 -0
  723. data/node_modules/preact/devtools/src/index.d.ts +8 -0
  724. data/node_modules/preact/devtools/src/index.js +15 -0
  725. data/node_modules/preact/dist/preact.js +2 -0
  726. data/node_modules/preact/dist/preact.js.map +1 -0
  727. data/node_modules/preact/dist/preact.min.js +2 -0
  728. data/node_modules/preact/dist/preact.min.js.map +1 -0
  729. data/node_modules/preact/dist/preact.mjs +2 -0
  730. data/node_modules/preact/dist/preact.mjs.map +1 -0
  731. data/node_modules/preact/dist/preact.module.js +2 -0
  732. data/node_modules/preact/dist/preact.module.js.map +1 -0
  733. data/node_modules/preact/dist/preact.umd.js +2 -0
  734. data/node_modules/preact/dist/preact.umd.js.map +1 -0
  735. data/node_modules/preact/hooks/LICENSE +21 -0
  736. data/node_modules/preact/hooks/dist/hooks.js +2 -0
  737. data/node_modules/preact/hooks/dist/hooks.js.map +1 -0
  738. data/node_modules/preact/hooks/dist/hooks.mjs +2 -0
  739. data/node_modules/preact/hooks/dist/hooks.mjs.map +1 -0
  740. data/node_modules/preact/hooks/dist/hooks.modern.js +2 -0
  741. data/node_modules/preact/hooks/dist/hooks.modern.js.map +1 -0
  742. data/node_modules/preact/hooks/dist/hooks.module.js +2 -0
  743. data/node_modules/preact/hooks/dist/hooks.module.js.map +1 -0
  744. data/node_modules/preact/hooks/dist/hooks.umd.js +2 -0
  745. data/node_modules/preact/hooks/dist/hooks.umd.js.map +1 -0
  746. data/node_modules/preact/hooks/package.json +26 -0
  747. data/node_modules/preact/hooks/src/index.d.ts +133 -0
  748. data/node_modules/preact/hooks/src/index.js +386 -0
  749. data/node_modules/preact/hooks/src/internal.d.ts +75 -0
  750. data/node_modules/preact/jsx-runtime/LICENSE +21 -0
  751. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js +2 -0
  752. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -0
  753. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
  754. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js +2 -0
  755. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js.map +1 -0
  756. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
  757. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -0
  758. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js +2 -0
  759. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -0
  760. data/node_modules/preact/jsx-runtime/package.json +19 -0
  761. data/node_modules/preact/jsx-runtime/src/index.d.ts +50 -0
  762. data/node_modules/preact/jsx-runtime/src/index.js +77 -0
  763. data/node_modules/preact/package.json +270 -0
  764. data/node_modules/preact/src/cjs.js +3 -0
  765. data/node_modules/preact/src/clone-element.js +34 -0
  766. data/node_modules/preact/src/component.js +225 -0
  767. data/node_modules/preact/src/constants.js +3 -0
  768. data/node_modules/preact/src/create-context.js +68 -0
  769. data/node_modules/preact/src/create-element.js +97 -0
  770. data/node_modules/preact/src/diff/catch-error.js +38 -0
  771. data/node_modules/preact/src/diff/children.js +347 -0
  772. data/node_modules/preact/src/diff/index.js +514 -0
  773. data/node_modules/preact/src/diff/props.js +158 -0
  774. data/node_modules/preact/src/index.d.ts +310 -0
  775. data/node_modules/preact/src/index.js +13 -0
  776. data/node_modules/preact/src/internal.d.ts +146 -0
  777. data/node_modules/preact/src/jsx.d.ts +962 -0
  778. data/node_modules/preact/src/options.js +16 -0
  779. data/node_modules/preact/src/render.js +75 -0
  780. data/node_modules/preact/src/util.js +27 -0
  781. data/node_modules/preact/test-utils/dist/testUtils.js +2 -0
  782. data/node_modules/preact/test-utils/dist/testUtils.js.map +1 -0
  783. data/node_modules/preact/test-utils/dist/testUtils.mjs +2 -0
  784. data/node_modules/preact/test-utils/dist/testUtils.mjs.map +1 -0
  785. data/node_modules/preact/test-utils/dist/testUtils.modern.js +2 -0
  786. data/node_modules/preact/test-utils/dist/testUtils.modern.js.map +1 -0
  787. data/node_modules/preact/test-utils/dist/testUtils.module.js +2 -0
  788. data/node_modules/preact/test-utils/dist/testUtils.module.js.map +1 -0
  789. data/node_modules/preact/test-utils/dist/testUtils.umd.js +2 -0
  790. data/node_modules/preact/test-utils/dist/testUtils.umd.js.map +1 -0
  791. data/node_modules/preact/test-utils/package.json +19 -0
  792. data/node_modules/preact/test-utils/src/index.d.ts +3 -0
  793. data/node_modules/preact/test-utils/src/index.js +117 -0
  794. data/node_modules/preact-deep-force-update/.babelrc +8 -0
  795. data/node_modules/preact-deep-force-update/.eslintrc +66 -0
  796. data/node_modules/preact-deep-force-update/.npmignore +2 -0
  797. data/node_modules/preact-deep-force-update/.travis.yml +3 -0
  798. data/node_modules/preact-deep-force-update/LICENSE +21 -0
  799. data/node_modules/preact-deep-force-update/README.md +53 -0
  800. data/node_modules/preact-deep-force-update/dist/deep-force-update.js +36 -0
  801. data/node_modules/preact-deep-force-update/dist/deep-force-update.js.map +1 -0
  802. data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js +2 -0
  803. data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js.map +1 -0
  804. data/node_modules/preact-deep-force-update/karma.conf.js +32 -0
  805. data/node_modules/preact-deep-force-update/package.json +80 -0
  806. data/node_modules/preact-deep-force-update/rollup.config.js +17 -0
  807. data/node_modules/preact-deep-force-update/src/index.js +27 -0
  808. data/node_modules/preact-deep-force-update/test/index.js +50 -0
  809. data/node_modules/preact-render-to-string/LICENSE +21 -0
  810. data/node_modules/preact-render-to-string/README.md +102 -0
  811. data/node_modules/preact-render-to-string/dist/commonjs.js +2 -0
  812. data/node_modules/preact-render-to-string/dist/commonjs.js.map +1 -0
  813. data/node_modules/preact-render-to-string/dist/index.d.ts +16 -0
  814. data/node_modules/preact-render-to-string/dist/index.js +1 -0
  815. data/node_modules/preact-render-to-string/dist/index.js.map +1 -0
  816. data/node_modules/preact-render-to-string/dist/index.mjs +2 -0
  817. data/node_modules/preact-render-to-string/dist/index.module.js +2 -0
  818. data/node_modules/preact-render-to-string/dist/index.module.js.map +1 -0
  819. data/node_modules/preact-render-to-string/dist/jsx-entry.js +2 -0
  820. data/node_modules/preact-render-to-string/dist/jsx-entry.js.map +1 -0
  821. data/node_modules/preact-render-to-string/dist/jsx.d.ts +13 -0
  822. data/node_modules/preact-render-to-string/dist/jsx.js +1 -0
  823. data/node_modules/preact-render-to-string/dist/jsx.js.map +1 -0
  824. data/node_modules/preact-render-to-string/dist/jsx.mjs +2 -0
  825. data/node_modules/preact-render-to-string/dist/jsx.modern.js +2 -0
  826. data/node_modules/preact-render-to-string/dist/jsx.modern.js.map +1 -0
  827. data/node_modules/preact-render-to-string/dist/jsx.module.js +2 -0
  828. data/node_modules/preact-render-to-string/dist/jsx.module.js.map +1 -0
  829. data/node_modules/preact-render-to-string/dist/preact-render-to-string-tests.d.ts +1 -0
  830. data/node_modules/preact-render-to-string/jsx.js +1 -0
  831. data/node_modules/preact-render-to-string/package.json +139 -0
  832. data/node_modules/preact-render-to-string/src/index.d.ts +16 -0
  833. data/node_modules/preact-render-to-string/src/index.js +438 -0
  834. data/node_modules/preact-render-to-string/src/jsx.d.ts +13 -0
  835. data/node_modules/preact-render-to-string/src/jsx.js +76 -0
  836. data/node_modules/preact-render-to-string/src/polyfills.js +8 -0
  837. data/node_modules/preact-render-to-string/src/preact-render-to-string-tests.d.ts +1 -0
  838. data/node_modules/preact-render-to-string/src/util.js +78 -0
  839. data/node_modules/preact-render-to-string/typings.json +5 -0
  840. data/node_modules/pretty-format/.npmignore +3 -0
  841. data/node_modules/pretty-format/LICENSE.md +15 -0
  842. data/node_modules/pretty-format/README.md +94 -0
  843. data/node_modules/pretty-format/index.js +343 -0
  844. data/node_modules/pretty-format/package.json +26 -0
  845. data/node_modules/pretty-format/plugins/ReactElement.js +74 -0
  846. data/node_modules/pretty-format/plugins/ReactTestComponent.js +58 -0
  847. data/node_modules/pretty-format/printString.js +7 -0
  848. data/node_modules/react/LICENSE +21 -0
  849. data/node_modules/react/README.md +13 -0
  850. data/node_modules/react/build-info.json +8 -0
  851. data/node_modules/react/cjs/react-jsx-dev-runtime.development.js +1203 -0
  852. data/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +9 -0
  853. data/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +9 -0
  854. data/node_modules/react/cjs/react-jsx-runtime.development.js +1221 -0
  855. data/node_modules/react/cjs/react-jsx-runtime.production.min.js +10 -0
  856. data/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +10 -0
  857. data/node_modules/react/cjs/react.development.js +2333 -0
  858. data/node_modules/react/cjs/react.production.min.js +23 -0
  859. data/node_modules/react/index.js +7 -0
  860. data/node_modules/react/jsx-dev-runtime.js +7 -0
  861. data/node_modules/react/jsx-runtime.js +7 -0
  862. data/node_modules/react/package.json +39 -0
  863. data/node_modules/react/umd/react.development.js +3357 -0
  864. data/node_modules/react/umd/react.production.min.js +31 -0
  865. data/node_modules/react/umd/react.profiling.min.js +36 -0
  866. data/node_modules/react-dom/LICENSE +21 -0
  867. data/node_modules/react-dom/README.md +54 -0
  868. data/node_modules/react-dom/build-info.json +8 -0
  869. data/node_modules/react-dom/cjs/react-dom-server.browser.development.js +4342 -0
  870. data/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +51 -0
  871. data/node_modules/react-dom/cjs/react-dom-server.node.development.js +4383 -0
  872. data/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +52 -0
  873. data/node_modules/react-dom/cjs/react-dom-test-utils.development.js +2118 -0
  874. data/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +43 -0
  875. data/node_modules/react-dom/cjs/react-dom.development.js +26262 -0
  876. data/node_modules/react-dom/cjs/react-dom.production.min.js +297 -0
  877. data/node_modules/react-dom/cjs/react-dom.profiling.min.js +310 -0
  878. data/node_modules/react-dom/index.js +38 -0
  879. data/node_modules/react-dom/package.json +49 -0
  880. data/node_modules/react-dom/profiling.js +38 -0
  881. data/node_modules/react-dom/server.browser.js +7 -0
  882. data/node_modules/react-dom/server.js +3 -0
  883. data/node_modules/react-dom/server.node.js +7 -0
  884. data/node_modules/react-dom/test-utils.js +7 -0
  885. data/node_modules/react-dom/umd/react-dom-server.browser.development.js +4341 -0
  886. data/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +46 -0
  887. data/node_modules/react-dom/umd/react-dom-test-utils.development.js +2136 -0
  888. data/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +35 -0
  889. data/node_modules/react-dom/umd/react-dom.development.js +26292 -0
  890. data/node_modules/react-dom/umd/react-dom.production.min.js +245 -0
  891. data/node_modules/react-dom/umd/react-dom.profiling.min.js +252 -0
  892. data/node_modules/regenerator-runtime/LICENSE +21 -0
  893. data/node_modules/regenerator-runtime/README.md +31 -0
  894. data/node_modules/regenerator-runtime/package.json +19 -0
  895. data/node_modules/regenerator-runtime/path.js +11 -0
  896. data/node_modules/regenerator-runtime/runtime.js +754 -0
  897. data/node_modules/rtl-css-js/CHANGELOG.md +5 -0
  898. data/node_modules/rtl-css-js/LICENSE +20 -0
  899. data/node_modules/rtl-css-js/README.md +205 -0
  900. data/node_modules/rtl-css-js/core/package.json +6 -0
  901. data/node_modules/rtl-css-js/core.d.ts +163 -0
  902. data/node_modules/rtl-css-js/core.esm.d.ts +1 -0
  903. data/node_modules/rtl-css-js/core.esm.js +9 -0
  904. data/node_modules/rtl-css-js/dist/cjs/convert-a10c80e3.js +509 -0
  905. data/node_modules/rtl-css-js/dist/cjs/core.js +30 -0
  906. data/node_modules/rtl-css-js/dist/cjs/index.js +7 -0
  907. data/node_modules/rtl-css-js/dist/esm/convert-09159978.js +487 -0
  908. data/node_modules/rtl-css-js/dist/esm/core.js +1 -0
  909. data/node_modules/rtl-css-js/dist/esm/index.js +5 -0
  910. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js +519 -0
  911. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js.map +1 -0
  912. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js +2 -0
  913. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js.map +1 -0
  914. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js +496 -0
  915. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js.map +1 -0
  916. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js +2 -0
  917. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js.map +1 -0
  918. data/node_modules/rtl-css-js/package.json +66 -0
  919. data/node_modules/rtl-css-js/types.d.ts +8 -0
  920. data/node_modules/scheduler/LICENSE +21 -0
  921. data/node_modules/scheduler/README.md +9 -0
  922. data/node_modules/scheduler/build-info.json +8 -0
  923. data/node_modules/scheduler/cjs/scheduler-tracing.development.js +347 -0
  924. data/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +9 -0
  925. data/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +16 -0
  926. data/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +665 -0
  927. data/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +19 -0
  928. data/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +206 -0
  929. data/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +13 -0
  930. data/node_modules/scheduler/cjs/scheduler.development.js +646 -0
  931. data/node_modules/scheduler/cjs/scheduler.production.min.js +20 -0
  932. data/node_modules/scheduler/index.js +7 -0
  933. data/node_modules/scheduler/package.json +40 -0
  934. data/node_modules/scheduler/tracing-profiling.js +7 -0
  935. data/node_modules/scheduler/tracing.js +7 -0
  936. data/node_modules/scheduler/umd/scheduler-tracing.development.js +80 -0
  937. data/node_modules/scheduler/umd/scheduler-tracing.production.min.js +80 -0
  938. data/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +80 -0
  939. data/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +664 -0
  940. data/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +18 -0
  941. data/node_modules/scheduler/umd/scheduler.development.js +152 -0
  942. data/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
  943. data/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
  944. data/node_modules/scheduler/unstable_mock.js +7 -0
  945. data/node_modules/scheduler/unstable_post_task.js +7 -0
  946. data/node_modules/source-map/CHANGELOG.md +301 -0
  947. data/node_modules/source-map/LICENSE +28 -0
  948. data/node_modules/source-map/README.md +742 -0
  949. data/node_modules/source-map/dist/source-map.debug.js +3234 -0
  950. data/node_modules/source-map/dist/source-map.js +3233 -0
  951. data/node_modules/source-map/dist/source-map.min.js +2 -0
  952. data/node_modules/source-map/dist/source-map.min.js.map +1 -0
  953. data/node_modules/source-map/lib/array-set.js +121 -0
  954. data/node_modules/source-map/lib/base64-vlq.js +140 -0
  955. data/node_modules/source-map/lib/base64.js +67 -0
  956. data/node_modules/source-map/lib/binary-search.js +111 -0
  957. data/node_modules/source-map/lib/mapping-list.js +79 -0
  958. data/node_modules/source-map/lib/quick-sort.js +114 -0
  959. data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  960. data/node_modules/source-map/lib/source-map-generator.js +425 -0
  961. data/node_modules/source-map/lib/source-node.js +413 -0
  962. data/node_modules/source-map/lib/util.js +488 -0
  963. data/node_modules/source-map/package.json +73 -0
  964. data/node_modules/source-map/source-map.d.ts +98 -0
  965. data/node_modules/source-map/source-map.js +8 -0
  966. data/node_modules/sourcemap-codec/CHANGELOG.md +64 -0
  967. data/node_modules/sourcemap-codec/LICENSE +21 -0
  968. data/node_modules/sourcemap-codec/README.md +63 -0
  969. data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js +124 -0
  970. data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js.map +1 -0
  971. data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js +135 -0
  972. data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
  973. data/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
  974. data/node_modules/sourcemap-codec/package.json +53 -0
  975. data/node_modules/stack-generator/.eslintrc.yml +32 -0
  976. data/node_modules/stack-generator/CHANGELOG.md +18 -0
  977. data/node_modules/stack-generator/CONTRIBUTING.md +27 -0
  978. data/node_modules/stack-generator/LICENSE +19 -0
  979. data/node_modules/stack-generator/README.md +28 -0
  980. data/node_modules/stack-generator/bower.json +33 -0
  981. data/node_modules/stack-generator/component.json +17 -0
  982. data/node_modules/stack-generator/dist/stack-generator.js +45 -0
  983. data/node_modules/stack-generator/dist/stack-generator.min.js +2 -0
  984. data/node_modules/stack-generator/dist/stack-generator.min.js.map +1 -0
  985. data/node_modules/stack-generator/karma.conf.ci.js +108 -0
  986. data/node_modules/stack-generator/karma.conf.js +26 -0
  987. data/node_modules/stack-generator/package.json +53 -0
  988. data/node_modules/stack-generator/stack-generator.js +45 -0
  989. data/node_modules/stackframe/.eslintrc.yml +29 -0
  990. data/node_modules/stackframe/CHANGELOG.md +39 -0
  991. data/node_modules/stackframe/CONTRIBUTING.md +28 -0
  992. data/node_modules/stackframe/LICENSE +19 -0
  993. data/node_modules/stackframe/README.md +78 -0
  994. data/node_modules/stackframe/bower.json +31 -0
  995. data/node_modules/stackframe/component.json +16 -0
  996. data/node_modules/stackframe/dist/stackframe.js +143 -0
  997. data/node_modules/stackframe/dist/stackframe.min.js +2 -0
  998. data/node_modules/stackframe/dist/stackframe.min.js.map +1 -0
  999. data/node_modules/stackframe/karma.conf.ci.js +105 -0
  1000. data/node_modules/stackframe/karma.conf.js +23 -0
  1001. data/node_modules/stackframe/package.json +51 -0
  1002. data/node_modules/stackframe/stackframe-tests.ts +47 -0
  1003. data/node_modules/stackframe/stackframe.d.ts +74 -0
  1004. data/node_modules/stackframe/stackframe.js +143 -0
  1005. data/node_modules/stacktrace-gps/CHANGELOG.md +60 -0
  1006. data/node_modules/stacktrace-gps/LICENSE +19 -0
  1007. data/node_modules/stacktrace-gps/README.md +89 -0
  1008. data/node_modules/stacktrace-gps/dist/polyfills.js +5 -0
  1009. data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js +2 -0
  1010. data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js.map +1 -0
  1011. data/node_modules/stacktrace-gps/dist/stacktrace-gps.js +342 -0
  1012. data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js +2 -0
  1013. data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js.map +1 -0
  1014. data/node_modules/stacktrace-gps/node_modules/source-map/CHANGELOG.md +301 -0
  1015. data/node_modules/stacktrace-gps/node_modules/source-map/LICENSE +28 -0
  1016. data/node_modules/stacktrace-gps/node_modules/source-map/README.md +729 -0
  1017. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.debug.js +3056 -0
  1018. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.js +3055 -0
  1019. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js +2 -0
  1020. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js.map +1 -0
  1021. data/node_modules/stacktrace-gps/node_modules/source-map/lib/array-set.js +104 -0
  1022. data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64-vlq.js +140 -0
  1023. data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64.js +67 -0
  1024. data/node_modules/stacktrace-gps/node_modules/source-map/lib/binary-search.js +111 -0
  1025. data/node_modules/stacktrace-gps/node_modules/source-map/lib/mapping-list.js +79 -0
  1026. data/node_modules/stacktrace-gps/node_modules/source-map/lib/quick-sort.js +114 -0
  1027. data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-consumer.js +1082 -0
  1028. data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-generator.js +404 -0
  1029. data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-node.js +407 -0
  1030. data/node_modules/stacktrace-gps/node_modules/source-map/lib/util.js +417 -0
  1031. data/node_modules/stacktrace-gps/node_modules/source-map/package.json +71 -0
  1032. data/node_modules/stacktrace-gps/node_modules/source-map/source-map.js +8 -0
  1033. data/node_modules/stacktrace-gps/package.json +66 -0
  1034. data/node_modules/stacktrace-gps/stacktrace-gps.js +342 -0
  1035. data/node_modules/stacktrace-js/CHANGELOG.md +97 -0
  1036. data/node_modules/stacktrace-js/LICENSE +19 -0
  1037. data/node_modules/stacktrace-js/README.md +186 -0
  1038. data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.js +5405 -0
  1039. data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js +3 -0
  1040. data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js.map +1 -0
  1041. data/node_modules/stacktrace-js/dist/stacktrace.js +3025 -0
  1042. data/node_modules/stacktrace-js/dist/stacktrace.min.js +2 -0
  1043. data/node_modules/stacktrace-js/dist/stacktrace.min.js.map +1 -0
  1044. data/node_modules/stacktrace-js/package.json +82 -0
  1045. data/node_modules/stacktrace-js/stacktrace-js.d.ts +134 -0
  1046. data/node_modules/stacktrace-js/stacktrace.js +227 -0
  1047. data/node_modules/stylis/LICENSE +21 -0
  1048. data/node_modules/stylis/README.md +152 -0
  1049. data/node_modules/stylis/dist/stylis.mjs +2 -0
  1050. data/node_modules/stylis/dist/stylis.mjs.map +1 -0
  1051. data/node_modules/stylis/dist/umd/package.json +1 -0
  1052. data/node_modules/stylis/dist/umd/stylis.js +2 -0
  1053. data/node_modules/stylis/dist/umd/stylis.js.map +1 -0
  1054. data/node_modules/stylis/index.js +7 -0
  1055. data/node_modules/stylis/package.json +164 -0
  1056. data/node_modules/stylis/src/Enum.js +20 -0
  1057. data/node_modules/stylis/src/Middleware.js +107 -0
  1058. data/node_modules/stylis/src/Parser.js +184 -0
  1059. data/node_modules/stylis/src/Prefixer.js +119 -0
  1060. data/node_modules/stylis/src/Serializer.js +34 -0
  1061. data/node_modules/stylis/src/Tokenizer.js +244 -0
  1062. data/node_modules/stylis/src/Utility.js +109 -0
  1063. data/node_modules/wouter-preact/cjs/index.js +180 -0
  1064. data/node_modules/wouter-preact/cjs/matcher.js +72 -0
  1065. data/node_modules/wouter-preact/cjs/package.json +1 -0
  1066. data/node_modules/wouter-preact/cjs/react-deps.js +75 -0
  1067. data/node_modules/wouter-preact/cjs/static-location.js +21 -0
  1068. data/node_modules/wouter-preact/cjs/use-location.js +94 -0
  1069. data/node_modules/wouter-preact/index.d.ts +110 -0
  1070. data/node_modules/wouter-preact/index.js +178 -0
  1071. data/node_modules/wouter-preact/matcher.d.ts +30 -0
  1072. data/node_modules/wouter-preact/matcher.js +66 -0
  1073. data/node_modules/wouter-preact/package.json +33 -0
  1074. data/node_modules/wouter-preact/react-deps.js +15 -0
  1075. data/node_modules/wouter-preact/static-location.d.ts +16 -0
  1076. data/node_modules/wouter-preact/static-location.js +17 -0
  1077. data/node_modules/wouter-preact/use-location.d.ts +43 -0
  1078. data/node_modules/wouter-preact/use-location.js +86 -0
  1079. data/package.json +10 -0
  1080. metadata +1097 -24
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtl-css-js.umd.js","sources":["../src/internal/utils.js","../src/internal/property-value-converters.js","../src/internal/convert.js"],"sourcesContent":["/**\n * Takes an array of [keyValue1, keyValue2] pairs and creates an object of {keyValue1: keyValue2, keyValue2: keyValue1}\n * @param {Array} array the array of pairs\n * @return {Object} the {key, value} pair object\n */\nfunction arrayToObject(array) {\n return array.reduce((obj, [prop1, prop2]) => {\n obj[prop1] = prop2\n obj[prop2] = prop1\n return obj\n }, {})\n}\n\nfunction isBoolean(val) {\n return typeof val === 'boolean'\n}\n\nfunction isFunction(val) {\n return typeof val === 'function'\n}\n\nfunction isNumber(val) {\n return typeof val === 'number'\n}\n\nfunction isNullOrUndefined(val) {\n return val === null || typeof val === 'undefined'\n}\n\nfunction isObject(val) {\n return val && typeof val === 'object'\n}\n\nfunction isString(val) {\n return typeof val === 'string'\n}\n\nfunction includes(inclusive, inclusee) {\n return inclusive.indexOf(inclusee) !== -1\n}\n\n/**\n * Flip the sign of a CSS value, possibly with a unit.\n *\n * We can't just negate the value with unary minus due to the units.\n *\n * @private\n * @param {String} value - the original value (for example 77%)\n * @return {String} the result (for example -77%)\n */\nfunction flipSign(value) {\n if (parseFloat(value) === 0) {\n // Don't mangle zeroes\n return value\n }\n\n if (value[0] === '-') {\n return value.slice(1)\n }\n\n return `-${value}`\n}\n\nfunction flipTransformSign(match, prefix, offset, suffix) {\n return prefix + flipSign(offset) + suffix\n}\n\n/**\n * Takes a percentage for background position and inverts it.\n * This was copied and modified from CSSJanus:\n * https://github.com/cssjanus/cssjanus/blob/4245f834365f6cfb0239191a151432fb85abab23/src/cssjanus.js#L152-L175\n * @param {String} value - the original value (for example 77%)\n * @return {String} the result (for example 23%)\n */\nfunction calculateNewBackgroundPosition(value) {\n const idx = value.indexOf('.')\n if (idx === -1) {\n value = `${100 - parseFloat(value)}%`\n } else {\n // Two off, one for the \"%\" at the end, one for the dot itself\n const len = value.length - idx - 2\n value = 100 - parseFloat(value)\n value = `${value.toFixed(len)}%`\n }\n return value\n}\n\n/**\n * This takes a list of CSS values and converts it to an array\n * @param {String} value - something like `1px`, `1px 2em`, or `3pt rgb(150, 230, 550) 40px calc(100% - 5px)`\n * @return {Array} the split values (for example: `['3pt', 'rgb(150, 230, 550)', '40px', 'calc(100% - 5px)']`)\n */\nfunction getValuesAsList(value) {\n return (\n value\n .replace(/ +/g, ' ') // remove all extraneous spaces\n .split(' ')\n .map(i => i.trim()) // get rid of extra space before/after each item\n .filter(Boolean) // get rid of empty strings\n // join items which are within parenthese\n // luckily `calc (100% - 5px)` is invalid syntax and it must be `calc(100% - 5px)`, otherwise this would be even more complex\n .reduce(\n ({list, state}, item) => {\n const openParansCount = (item.match(/\\(/g) || []).length\n const closedParansCount = (item.match(/\\)/g) || []).length\n if (state.parensDepth > 0) {\n list[list.length - 1] = `${list[list.length - 1]} ${item}`\n } else {\n list.push(item)\n }\n state.parensDepth += openParansCount - closedParansCount\n return {list, state}\n },\n {list: [], state: {parensDepth: 0}},\n ).list\n )\n}\n\n/**\n * This is intended for properties that are `top right bottom left` and will switch them to `top left bottom right`\n * @param {String} value - `1px 2px 3px 4px` for example, but also handles cases where there are too few/too many and\n * simply returns the value in those cases (which is the correct behavior)\n * @return {String} the result - `1px 4px 3px 2px` for example.\n */\nfunction handleQuartetValues(value) {\n const splitValues = getValuesAsList(value)\n if (splitValues.length <= 3 || splitValues.length > 4) {\n return value\n }\n const [top, right, bottom, left] = splitValues\n return [top, left, bottom, right].join(' ')\n}\n\nexport {\n arrayToObject,\n calculateNewBackgroundPosition,\n flipTransformSign as calculateNewTranslate,\n flipTransformSign,\n flipSign,\n handleQuartetValues,\n includes,\n isBoolean,\n isFunction,\n isNullOrUndefined,\n isNumber,\n isObject,\n isString,\n getValuesAsList,\n}\n","import {\n includes,\n isNumber,\n calculateNewBackgroundPosition,\n flipTransformSign,\n handleQuartetValues,\n getValuesAsList,\n} from './utils'\n\n// some values require a little fudging, that fudging goes here.\nconst propertyValueConverters = {\n padding({value}) {\n if (isNumber(value)) {\n return value\n }\n return handleQuartetValues(value)\n },\n textShadow({value}) {\n // intentionally leaving off the `g` flag here because we only want to change the first number (which is the offset-x)\n return value.replace(/(-*)([.|\\d]+)/, (match, negative, number) => {\n if (number === '0') {\n return match\n }\n const doubleNegative = negative === '' ? '-' : ''\n return `${doubleNegative}${number}`\n })\n },\n borderColor({value}) {\n return handleQuartetValues(value)\n },\n borderRadius({value}) {\n if (isNumber(value)) {\n return value\n }\n if (includes(value, '/')) {\n const [radius1, radius2] = value.split('/')\n const convertedRadius1 = propertyValueConverters.borderRadius({\n value: radius1.trim(),\n })\n const convertedRadius2 = propertyValueConverters.borderRadius({\n value: radius2.trim(),\n })\n return `${convertedRadius1} / ${convertedRadius2}`\n }\n const splitValues = getValuesAsList(value)\n switch (splitValues.length) {\n case 2: {\n return splitValues.reverse().join(' ')\n }\n case 4: {\n const [topLeft, topRight, bottomRight, bottomLeft] = splitValues\n return [topRight, topLeft, bottomLeft, bottomRight].join(' ')\n }\n default: {\n return value\n }\n }\n },\n background({\n value,\n valuesToConvert,\n isRtl,\n bgImgDirectionRegex,\n bgPosDirectionRegex,\n }) {\n if (isNumber(value)) {\n return value\n }\n\n // Yeah, this is in need of a refactor 🙃...\n // but this property is a tough cookie 🍪\n // get the backgroundPosition out of the string by removing everything that couldn't be the backgroundPosition value\n const backgroundPositionValue = value\n .replace(\n /(url\\(.*?\\))|(rgba?\\(.*?\\))|(hsl\\(.*?\\))|(#[a-fA-F0-9]+)|((^| )(\\D)+( |$))/g,\n '',\n )\n .trim()\n // replace that backgroundPosition value with the converted version\n value = value.replace(\n backgroundPositionValue,\n propertyValueConverters.backgroundPosition({\n value: backgroundPositionValue,\n valuesToConvert,\n isRtl,\n bgPosDirectionRegex,\n }),\n )\n // do the backgroundImage value replacing on the whole value (because why not?)\n return propertyValueConverters.backgroundImage({\n value,\n valuesToConvert,\n bgImgDirectionRegex,\n })\n },\n backgroundImage({value, valuesToConvert, bgImgDirectionRegex}) {\n if (!includes(value, 'url(') && !includes(value, 'linear-gradient(')) {\n return value\n }\n return value.replace(bgImgDirectionRegex, (match, g1, group2) => {\n return match.replace(group2, valuesToConvert[group2])\n })\n },\n backgroundPosition({value, valuesToConvert, isRtl, bgPosDirectionRegex}) {\n return (\n value\n // intentionally only grabbing the first instance of this because that represents `left`\n .replace(isRtl ? /^((-|\\d|\\.)+%)/ : null, (match, group) =>\n calculateNewBackgroundPosition(group),\n )\n .replace(bgPosDirectionRegex, match => valuesToConvert[match])\n )\n },\n backgroundPositionX({value, valuesToConvert, isRtl, bgPosDirectionRegex}) {\n if (isNumber(value)) {\n return value\n }\n return propertyValueConverters.backgroundPosition({\n value,\n valuesToConvert,\n isRtl,\n bgPosDirectionRegex,\n })\n },\n transition({value, propertiesToConvert}) {\n return value\n .split(/,\\s*/g)\n .map(transition => {\n const values = transition.split(' ')\n\n // Property is always defined first\n values[0] = propertiesToConvert[values[0]] || values[0]\n\n return values.join(' ')\n })\n .join(', ')\n },\n transitionProperty({value, propertiesToConvert}) {\n return value\n .split(/,\\s*/g)\n .map(prop => propertiesToConvert[prop] || prop)\n .join(', ')\n },\n transform({value}) {\n // This was copied and modified from CSSJanus:\n // https://github.com/cssjanus/cssjanus/blob/4a40f001b1ba35567112d8b8e1d9d95eda4234c3/src/cssjanus.js#L152-L153\n const nonAsciiPattern = '[^\\\\u0020-\\\\u007e]'\n const unicodePattern = '(?:(?:\\\\[0-9a-f]{1,6})(?:\\\\r\\\\n|\\\\s)?)'\n const numPattern = '(?:[0-9]*\\\\.[0-9]+|[0-9]+)'\n const unitPattern = '(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)'\n const escapePattern = `(?:${unicodePattern}|\\\\\\\\[^\\\\r\\\\n\\\\f0-9a-f])`\n const nmstartPattern = `(?:[_a-z]|${nonAsciiPattern}|${escapePattern})`\n const nmcharPattern = `(?:[_a-z0-9-]|${nonAsciiPattern}|${escapePattern})`\n const identPattern = `-?${nmstartPattern}${nmcharPattern}*`\n const quantPattern = `${numPattern}(?:\\\\s*${unitPattern}|${identPattern})?`\n const signedQuantPattern = `((?:-?${quantPattern})|(?:inherit|auto))`\n const translateXRegExp = new RegExp(\n `(translateX\\\\s*\\\\(\\\\s*)${signedQuantPattern}(\\\\s*\\\\))`,\n 'gi',\n )\n const translateRegExp = new RegExp(\n `(translate\\\\s*\\\\(\\\\s*)${signedQuantPattern}((?:\\\\s*,\\\\s*${signedQuantPattern}){0,1}\\\\s*\\\\))`,\n 'gi',\n )\n const translate3dRegExp = new RegExp(\n `(translate3d\\\\s*\\\\(\\\\s*)${signedQuantPattern}((?:\\\\s*,\\\\s*${signedQuantPattern}){0,2}\\\\s*\\\\))`,\n 'gi',\n )\n const rotateRegExp = new RegExp(\n `(rotate[ZY]?\\\\s*\\\\(\\\\s*)${signedQuantPattern}(\\\\s*\\\\))`,\n 'gi',\n )\n return value\n .replace(translateXRegExp, flipTransformSign)\n .replace(translateRegExp, flipTransformSign)\n .replace(translate3dRegExp, flipTransformSign)\n .replace(rotateRegExp, flipTransformSign)\n },\n}\n\npropertyValueConverters.objectPosition =\n propertyValueConverters.backgroundPosition\npropertyValueConverters.margin = propertyValueConverters.padding\npropertyValueConverters.borderWidth = propertyValueConverters.padding\npropertyValueConverters.boxShadow = propertyValueConverters.textShadow\npropertyValueConverters.webkitBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.mozBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.WebkitBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.MozBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.borderStyle = propertyValueConverters.borderColor\npropertyValueConverters.webkitTransform = propertyValueConverters.transform\npropertyValueConverters.mozTransform = propertyValueConverters.transform\npropertyValueConverters.WebkitTransform = propertyValueConverters.transform\npropertyValueConverters.MozTransform = propertyValueConverters.transform\npropertyValueConverters.transformOrigin =\n propertyValueConverters.backgroundPosition\npropertyValueConverters.webkitTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.mozTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.WebkitTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.MozTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.webkitTransition = propertyValueConverters.transition\npropertyValueConverters.mozTransition = propertyValueConverters.transition\npropertyValueConverters.WebkitTransition = propertyValueConverters.transition\npropertyValueConverters.MozTransition = propertyValueConverters.transition\npropertyValueConverters.webkitTransitionProperty =\n propertyValueConverters.transitionProperty\npropertyValueConverters.mozTransitionProperty =\n propertyValueConverters.transitionProperty\npropertyValueConverters.WebkitTransitionProperty =\n propertyValueConverters.transitionProperty\npropertyValueConverters.MozTransitionProperty =\n propertyValueConverters.transitionProperty\n\n// kebab-case versions\n\npropertyValueConverters['text-shadow'] = propertyValueConverters.textShadow\npropertyValueConverters['border-color'] = propertyValueConverters.borderColor\npropertyValueConverters['border-radius'] = propertyValueConverters.borderRadius\npropertyValueConverters['background-image'] =\n propertyValueConverters.backgroundImage\npropertyValueConverters['background-position'] =\n propertyValueConverters.backgroundPosition\npropertyValueConverters['background-position-x'] =\n propertyValueConverters.backgroundPositionX\npropertyValueConverters['object-position'] =\n propertyValueConverters.objectPosition\npropertyValueConverters['border-width'] = propertyValueConverters.padding\npropertyValueConverters['box-shadow'] = propertyValueConverters.textShadow\npropertyValueConverters['-webkit-box-shadow'] =\n propertyValueConverters.textShadow\npropertyValueConverters['-moz-box-shadow'] = propertyValueConverters.textShadow\npropertyValueConverters['border-style'] = propertyValueConverters.borderColor\npropertyValueConverters['-webkit-transform'] = propertyValueConverters.transform\npropertyValueConverters['-moz-transform'] = propertyValueConverters.transform\npropertyValueConverters['transform-origin'] =\n propertyValueConverters.transformOrigin\npropertyValueConverters['-webkit-transform-origin'] =\n propertyValueConverters.transformOrigin\npropertyValueConverters['-moz-transform-origin'] =\n propertyValueConverters.transformOrigin\npropertyValueConverters['-webkit-transition'] =\n propertyValueConverters.transition\npropertyValueConverters['-moz-transition'] = propertyValueConverters.transition\npropertyValueConverters['transition-property'] =\n propertyValueConverters.transitionProperty\npropertyValueConverters['-webkit-transition-property'] =\n propertyValueConverters.transitionProperty\npropertyValueConverters['-moz-transition-property'] =\n propertyValueConverters.transitionProperty\n\nexport default propertyValueConverters\n","import {\n includes,\n arrayToObject,\n isBoolean,\n isFunction,\n isNumber,\n isObject,\n isString,\n isNullOrUndefined,\n} from './utils'\nimport propertyValueConverters from './property-value-converters'\n\n// this will be an object of properties that map to their corresponding rtl property (their doppelganger)\nexport const propertiesToConvert = arrayToObject([\n ['paddingLeft', 'paddingRight'],\n ['marginLeft', 'marginRight'],\n ['left', 'right'],\n ['borderLeft', 'borderRight'],\n ['borderLeftColor', 'borderRightColor'],\n ['borderLeftStyle', 'borderRightStyle'],\n ['borderLeftWidth', 'borderRightWidth'],\n ['borderTopLeftRadius', 'borderTopRightRadius'],\n ['borderBottomLeftRadius', 'borderBottomRightRadius'],\n // kebab-case versions\n ['padding-left', 'padding-right'],\n ['margin-left', 'margin-right'],\n ['border-left', 'border-right'],\n ['border-left-color', 'border-right-color'],\n ['border-left-style', 'border-right-style'],\n ['border-left-width', 'border-right-width'],\n ['border-top-left-radius', 'border-top-right-radius'],\n ['border-bottom-left-radius', 'border-bottom-right-radius'],\n])\n\nexport const propsToIgnore = ['content']\n\n// this is the same as the propertiesToConvert except for values\nexport const valuesToConvert = arrayToObject([\n ['ltr', 'rtl'],\n ['left', 'right'],\n ['w-resize', 'e-resize'],\n ['sw-resize', 'se-resize'],\n ['nw-resize', 'ne-resize'],\n])\n\n// Sorry for the regex 😞, but basically thisis used to replace _every_ instance of\n// `ltr`, `rtl`, `right`, and `left` in `backgroundimage` with the corresponding opposite.\n// A situation we're accepting here:\n// url('/left/right/rtl/ltr.png') will be changed to url('/right/left/ltr/rtl.png')\n// Definite trade-offs here, but I think it's a good call.\nconst bgImgDirectionRegex = new RegExp(\n '(^|\\\\W|_)((ltr)|(rtl)|(left)|(right))(\\\\W|_|$)',\n 'g',\n)\nconst bgPosDirectionRegex = new RegExp('(left)|(right)')\n\n/**\n * converts properties and values in the CSS in JS object to their corresponding RTL values\n * @param {Object} object the CSS in JS object\n * @return {Object} the RTL converted object\n */\nexport function convert(object) {\n return Object.keys(object).reduce(\n (newObj, originalKey) => {\n let originalValue = object[originalKey]\n if (isString(originalValue)) {\n // you're welcome to later code 😺\n originalValue = originalValue.trim()\n }\n\n // Some properties should never be transformed\n if (includes(propsToIgnore, originalKey)) {\n newObj[originalKey] = originalValue\n return newObj\n }\n\n const {key, value} = convertProperty(originalKey, originalValue)\n newObj[key] = value\n return newObj\n },\n Array.isArray(object) ? [] : {},\n )\n}\n\n/**\n * Converts a property and its value to the corresponding RTL key and value\n * @param {String} originalKey the original property key\n * @param {Number|String|Object} originalValue the original css property value\n * @return {Object} the new {key, value} pair\n */\nexport function convertProperty(originalKey, originalValue) {\n const isNoFlip = /\\/\\*\\s?@noflip\\s?\\*\\//.test(originalValue)\n const key = isNoFlip ? originalKey : getPropertyDoppelganger(originalKey)\n const value = isNoFlip\n ? originalValue\n : getValueDoppelganger(key, originalValue)\n return {key, value}\n}\n\n/**\n * This gets the RTL version of the given property if it has a corresponding RTL property\n * @param {String} property the name of the property\n * @return {String} the name of the RTL property\n */\nexport function getPropertyDoppelganger(property) {\n return propertiesToConvert[property] || property\n}\n\n/**\n * This converts the given value to the RTL version of that value based on the key\n * @param {String} key this is the key (note: this should be the RTL version of the originalKey)\n * @param {String|Number|Object} originalValue the original css property value. If it's an object, then we'll convert that as well\n * @return {String|Number|Object} the converted value\n */\nexport function getValueDoppelganger(key, originalValue) {\n /* eslint complexity:[2, 10] */ // let's try to keep the complexity down... If we have to do this much more, let's break this up\n if (isNullOrUndefined(originalValue) || isBoolean(originalValue)) {\n return originalValue\n }\n\n if (isObject(originalValue)) {\n return convert(originalValue) // recurssion 🌀\n }\n const isNum = isNumber(originalValue)\n const isFunc = isFunction(originalValue)\n\n const importantlessValue =\n isNum || isFunc\n ? originalValue\n : originalValue.replace(/ !important.*?$/, '')\n const isImportant =\n !isNum && importantlessValue.length !== originalValue.length\n const valueConverter = propertyValueConverters[key]\n let newValue\n if (valueConverter) {\n newValue = valueConverter({\n value: importantlessValue,\n valuesToConvert,\n propertiesToConvert,\n isRtl: true,\n bgImgDirectionRegex,\n bgPosDirectionRegex,\n })\n } else {\n newValue = valuesToConvert[importantlessValue] || importantlessValue\n }\n if (isImportant) {\n return `${newValue} !important`\n }\n return newValue\n}\n"],"names":["arrayToObject","array","reduce","obj","prop1","prop2","isBoolean","val","isFunction","isNumber","isNullOrUndefined","isObject","isString","includes","inclusive","inclusee","indexOf","flipSign","value","parseFloat","slice","flipTransformSign","match","prefix","offset","suffix","calculateNewBackgroundPosition","idx","len","length","toFixed","getValuesAsList","replace","split","map","i","trim","filter","Boolean","item","list","state","openParansCount","closedParansCount","parensDepth","push","handleQuartetValues","splitValues","top","right","bottom","left","join","propertyValueConverters","padding","textShadow","negative","number","doubleNegative","borderColor","borderRadius","radius1","radius2","convertedRadius1","convertedRadius2","reverse","topLeft","topRight","bottomRight","bottomLeft","background","valuesToConvert","isRtl","bgImgDirectionRegex","bgPosDirectionRegex","backgroundPositionValue","backgroundPosition","backgroundImage","g1","group2","group","backgroundPositionX","transition","propertiesToConvert","values","transitionProperty","prop","transform","nonAsciiPattern","escapePattern","signedQuantPattern","translateXRegExp","RegExp","translateRegExp","translate3dRegExp","rotateRegExp","objectPosition","margin","borderWidth","boxShadow","webkitBoxShadow","mozBoxShadow","WebkitBoxShadow","MozBoxShadow","borderStyle","webkitTransform","mozTransform","WebkitTransform","MozTransform","transformOrigin","webkitTransformOrigin","mozTransformOrigin","WebkitTransformOrigin","MozTransformOrigin","webkitTransition","mozTransition","WebkitTransition","MozTransition","webkitTransitionProperty","mozTransitionProperty","WebkitTransitionProperty","MozTransitionProperty","propsToIgnore","convert","object","Object","keys","newObj","originalKey","originalValue","convertProperty","key","Array","isArray","isNoFlip","test","getPropertyDoppelganger","getValueDoppelganger","property","isNum","isFunc","importantlessValue","isImportant","valueConverter","newValue"],"mappings":";;;;;;EAAA;EACA;EACA;EACA;EACA;EACA,SAASA,aAAT,CAAuBC,KAAvB,EAA8B;EAC5B,SAAOA,KAAK,CAACC,MAAN,CAAa,UAACC,GAAD,QAAyB;EAAA,QAAlBC,KAAkB;EAAA,QAAXC,KAAW;EAC3CF,IAAAA,GAAG,CAACC,KAAD,CAAH,GAAaC,KAAb;EACAF,IAAAA,GAAG,CAACE,KAAD,CAAH,GAAaD,KAAb;EACA,WAAOD,GAAP;EACD,GAJM,EAIJ,EAJI,CAAP;EAKD;;EAED,SAASG,SAAT,CAAmBC,GAAnB,EAAwB;EACtB,SAAO,OAAOA,GAAP,KAAe,SAAtB;EACD;;EAED,SAASC,UAAT,CAAoBD,GAApB,EAAyB;EACvB,SAAO,OAAOA,GAAP,KAAe,UAAtB;EACD;;EAED,SAASE,QAAT,CAAkBF,GAAlB,EAAuB;EACrB,SAAO,OAAOA,GAAP,KAAe,QAAtB;EACD;;EAED,SAASG,iBAAT,CAA2BH,GAA3B,EAAgC;EAC9B,SAAOA,GAAG,KAAK,IAAR,IAAgB,OAAOA,GAAP,KAAe,WAAtC;EACD;;EAED,SAASI,QAAT,CAAkBJ,GAAlB,EAAuB;EACrB,SAAOA,GAAG,IAAI,OAAOA,GAAP,KAAe,QAA7B;EACD;;EAED,SAASK,QAAT,CAAkBL,GAAlB,EAAuB;EACrB,SAAO,OAAOA,GAAP,KAAe,QAAtB;EACD;;EAED,SAASM,QAAT,CAAkBC,SAAlB,EAA6BC,QAA7B,EAAuC;EACrC,SAAOD,SAAS,CAACE,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,CAAChH,MAAnB,KAA8BoG,aAAa,CAACpG,MADxD;EAEA,MAAMkH,cAAc,GAAG1F,uBAAuB,CAAC8E,GAAD,CAA9C;EACA,MAAIa,QAAJ;;EACA,MAAID,cAAJ,EAAoB;EAClBC,IAAAA,QAAQ,GAAGD,cAAc,CAAC;EACxB7H,MAAAA,KAAK,EAAE2H,kBADiB;EAExBtE,MAAAA,eAAe,EAAfA,eAFwB;EAGxBY,MAAAA,mBAAmB,EAAnBA,mBAHwB;EAIxBX,MAAAA,KAAK,EAAE,IAJiB;EAKxBC,MAAAA,mBAAmB,EAAnBA,mBALwB;EAMxBC,MAAAA,mBAAmB,EAAnBA;EANwB,KAAD,CAAzB;EAQD,GATD,MASO;EACLsE,IAAAA,QAAQ,GAAGzE,eAAe,CAACsE,kBAAD,CAAf,IAAuCA,kBAAlD;EACD;;EACD,MAAIC,WAAJ,EAAiB;EACf,WAAUE,QAAV;EACD;;EACD,SAAOA,QAAP;EACD;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(r=r||self).RtlCssJs=t()}(this,(function(){"use strict";function r(r){return r.reduce((function(r,t){var e=t[0],o=t[1];return r[e]=o,r[o]=e,r}),{})}function t(r){return"number"==typeof r}function e(r,t){return-1!==r.indexOf(t)}function o(r,t,e,o){return t+(n=e,0===parseFloat(n)?n:"-"===n[0]?n.slice(1):"-"+n)+o;var n}function n(r){return r.replace(/ +/g," ").split(" ").map((function(r){return r.trim()})).filter(Boolean).reduce((function(r,t){var e=r.list,o=r.state,n=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return o.parensDepth>0?e[e.length-1]=e[e.length-1]+" "+t:e.push(t),o.parensDepth+=n-i,{list:e,state:o}}),{list:[],state:{parensDepth:0}}).list}function i(r){var t=n(r);if(t.length<=3||t.length>4)return r;var e=t[0],o=t[1],i=t[2];return[e,t[3],i,o].join(" ")}var a={padding:function(r){var e=r.value;return t(e)?e:i(e)},textShadow:function(r){return r.value.replace(/(-*)([.|\d]+)/,(function(r,t,e){return"0"===e?r:""+(""===t?"-":"")+e}))},borderColor:function(r){return i(r.value)},borderRadius:function(r){var o=r.value;if(t(o))return o;if(e(o,"/")){var i=o.split("/"),s=i[0],u=i[1];return a.borderRadius({value:s.trim()})+" / "+a.borderRadius({value:u.trim()})}var d=n(o);switch(d.length){case 2:return d.reverse().join(" ");case 4:var g=d[0],l=d[1],f=d[2];return[l,g,d[3],f].join(" ");default:return o}},background:function(r){var e=r.value,o=r.valuesToConvert,n=r.isRtl,i=r.bgImgDirectionRegex,s=r.bgPosDirectionRegex;if(t(e))return e;var u=e.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return e=e.replace(u,a.backgroundPosition({value:u,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:s})),a.backgroundImage({value:e,valuesToConvert:o,bgImgDirectionRegex:i})},backgroundImage:function(r){var t=r.value,o=r.valuesToConvert,n=r.bgImgDirectionRegex;return e(t,"url(")||e(t,"linear-gradient(")?t.replace(n,(function(r,t,e){return r.replace(e,o[e])})):t},backgroundPosition:function(r){var t=r.value,e=r.valuesToConvert,o=r.isRtl,n=r.bgPosDirectionRegex;return t.replace(o?/^((-|\d|\.)+%)/:null,(function(r,t){return function(r){var t=r.indexOf(".");if(-1===t)r=100-parseFloat(r)+"%";else{var e=r.length-t-2;r=(r=100-parseFloat(r)).toFixed(e)+"%"}return r}(t)})).replace(n,(function(r){return e[r]}))},backgroundPositionX:function(r){var e=r.value,o=r.valuesToConvert,n=r.isRtl,i=r.bgPosDirectionRegex;return t(e)?e:a.backgroundPosition({value:e,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:i})},transition:function(r){var t=r.value,e=r.propertiesToConvert;return t.split(/,\s*/g).map((function(r){var t=r.split(" ");return t[0]=e[t[0]]||t[0],t.join(" ")})).join(", ")},transitionProperty:function(r){var t=r.value,e=r.propertiesToConvert;return t.split(/,\s*/g).map((function(r){return e[r]||r})).join(", ")},transform:function(r){var t=r.value,e="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+e+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+e+")*)?)|(?:inherit|auto))",i=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),a=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),s=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi"),u=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+n+"(\\s*\\))","gi");return t.replace(i,o).replace(a,o).replace(s,o).replace(u,o)}};a.objectPosition=a.backgroundPosition,a.margin=a.padding,a.borderWidth=a.padding,a.boxShadow=a.textShadow,a.webkitBoxShadow=a.boxShadow,a.mozBoxShadow=a.boxShadow,a.WebkitBoxShadow=a.boxShadow,a.MozBoxShadow=a.boxShadow,a.borderStyle=a.borderColor,a.webkitTransform=a.transform,a.mozTransform=a.transform,a.WebkitTransform=a.transform,a.MozTransform=a.transform,a.transformOrigin=a.backgroundPosition,a.webkitTransformOrigin=a.transformOrigin,a.mozTransformOrigin=a.transformOrigin,a.WebkitTransformOrigin=a.transformOrigin,a.MozTransformOrigin=a.transformOrigin,a.webkitTransition=a.transition,a.mozTransition=a.transition,a.WebkitTransition=a.transition,a.MozTransition=a.transition,a.webkitTransitionProperty=a.transitionProperty,a.mozTransitionProperty=a.transitionProperty,a.WebkitTransitionProperty=a.transitionProperty,a.MozTransitionProperty=a.transitionProperty,a["text-shadow"]=a.textShadow,a["border-color"]=a.borderColor,a["border-radius"]=a.borderRadius,a["background-image"]=a.backgroundImage,a["background-position"]=a.backgroundPosition,a["background-position-x"]=a.backgroundPositionX,a["object-position"]=a.objectPosition,a["border-width"]=a.padding,a["box-shadow"]=a.textShadow,a["-webkit-box-shadow"]=a.textShadow,a["-moz-box-shadow"]=a.textShadow,a["border-style"]=a.borderColor,a["-webkit-transform"]=a.transform,a["-moz-transform"]=a.transform,a["transform-origin"]=a.transformOrigin,a["-webkit-transform-origin"]=a.transformOrigin,a["-moz-transform-origin"]=a.transformOrigin,a["-webkit-transition"]=a.transition,a["-moz-transition"]=a.transition,a["transition-property"]=a.transitionProperty,a["-webkit-transition-property"]=a.transitionProperty,a["-moz-transition-property"]=a.transitionProperty;var s=r([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),u=["content"],d=r([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),g=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),l=new RegExp("(left)|(right)");function f(r){return Object.keys(r).reduce((function(o,n){var i=r[n];if("string"==typeof i&&(i=i.trim()),e(u,n))return o[n]=i,o;var c=function(r,e){var o=/\/\*\s?@noflip\s?\*\//.test(e),n=o?r:(u=r,s[u]||u),i=o?e:function(r,e){if(function(r){return null==r}(e)||function(r){return"boolean"==typeof r}(e))return e;if(function(r){return r&&"object"==typeof r}(e))return f(e);var o,n=t(e),i=function(r){return"function"==typeof r}(e),u=n||i?e:e.replace(/ !important.*?$/,""),c=!n&&u.length!==e.length,b=a[r];o=b?b({value:u,valuesToConvert:d,propertiesToConvert:s,isRtl:!0,bgImgDirectionRegex:g,bgPosDirectionRegex:l}):d[u]||u;if(c)return o+" !important";return o}(n,e);var u;return{key:n,value:i}}(n,i),b=c.key,p=c.value;return o[b]=p,o}),Array.isArray(r)?[]:{})}return f}));
2
+ //# sourceMappingURL=rtl-css-js.umd.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtl-css-js.umd.min.js","sources":["../src/internal/utils.js","../src/internal/property-value-converters.js","../src/internal/convert.js"],"sourcesContent":["/**\n * Takes an array of [keyValue1, keyValue2] pairs and creates an object of {keyValue1: keyValue2, keyValue2: keyValue1}\n * @param {Array} array the array of pairs\n * @return {Object} the {key, value} pair object\n */\nfunction arrayToObject(array) {\n return array.reduce((obj, [prop1, prop2]) => {\n obj[prop1] = prop2\n obj[prop2] = prop1\n return obj\n }, {})\n}\n\nfunction isBoolean(val) {\n return typeof val === 'boolean'\n}\n\nfunction isFunction(val) {\n return typeof val === 'function'\n}\n\nfunction isNumber(val) {\n return typeof val === 'number'\n}\n\nfunction isNullOrUndefined(val) {\n return val === null || typeof val === 'undefined'\n}\n\nfunction isObject(val) {\n return val && typeof val === 'object'\n}\n\nfunction isString(val) {\n return typeof val === 'string'\n}\n\nfunction includes(inclusive, inclusee) {\n return inclusive.indexOf(inclusee) !== -1\n}\n\n/**\n * Flip the sign of a CSS value, possibly with a unit.\n *\n * We can't just negate the value with unary minus due to the units.\n *\n * @private\n * @param {String} value - the original value (for example 77%)\n * @return {String} the result (for example -77%)\n */\nfunction flipSign(value) {\n if (parseFloat(value) === 0) {\n // Don't mangle zeroes\n return value\n }\n\n if (value[0] === '-') {\n return value.slice(1)\n }\n\n return `-${value}`\n}\n\nfunction flipTransformSign(match, prefix, offset, suffix) {\n return prefix + flipSign(offset) + suffix\n}\n\n/**\n * Takes a percentage for background position and inverts it.\n * This was copied and modified from CSSJanus:\n * https://github.com/cssjanus/cssjanus/blob/4245f834365f6cfb0239191a151432fb85abab23/src/cssjanus.js#L152-L175\n * @param {String} value - the original value (for example 77%)\n * @return {String} the result (for example 23%)\n */\nfunction calculateNewBackgroundPosition(value) {\n const idx = value.indexOf('.')\n if (idx === -1) {\n value = `${100 - parseFloat(value)}%`\n } else {\n // Two off, one for the \"%\" at the end, one for the dot itself\n const len = value.length - idx - 2\n value = 100 - parseFloat(value)\n value = `${value.toFixed(len)}%`\n }\n return value\n}\n\n/**\n * This takes a list of CSS values and converts it to an array\n * @param {String} value - something like `1px`, `1px 2em`, or `3pt rgb(150, 230, 550) 40px calc(100% - 5px)`\n * @return {Array} the split values (for example: `['3pt', 'rgb(150, 230, 550)', '40px', 'calc(100% - 5px)']`)\n */\nfunction getValuesAsList(value) {\n return (\n value\n .replace(/ +/g, ' ') // remove all extraneous spaces\n .split(' ')\n .map(i => i.trim()) // get rid of extra space before/after each item\n .filter(Boolean) // get rid of empty strings\n // join items which are within parenthese\n // luckily `calc (100% - 5px)` is invalid syntax and it must be `calc(100% - 5px)`, otherwise this would be even more complex\n .reduce(\n ({list, state}, item) => {\n const openParansCount = (item.match(/\\(/g) || []).length\n const closedParansCount = (item.match(/\\)/g) || []).length\n if (state.parensDepth > 0) {\n list[list.length - 1] = `${list[list.length - 1]} ${item}`\n } else {\n list.push(item)\n }\n state.parensDepth += openParansCount - closedParansCount\n return {list, state}\n },\n {list: [], state: {parensDepth: 0}},\n ).list\n )\n}\n\n/**\n * This is intended for properties that are `top right bottom left` and will switch them to `top left bottom right`\n * @param {String} value - `1px 2px 3px 4px` for example, but also handles cases where there are too few/too many and\n * simply returns the value in those cases (which is the correct behavior)\n * @return {String} the result - `1px 4px 3px 2px` for example.\n */\nfunction handleQuartetValues(value) {\n const splitValues = getValuesAsList(value)\n if (splitValues.length <= 3 || splitValues.length > 4) {\n return value\n }\n const [top, right, bottom, left] = splitValues\n return [top, left, bottom, right].join(' ')\n}\n\nexport {\n arrayToObject,\n calculateNewBackgroundPosition,\n flipTransformSign as calculateNewTranslate,\n flipTransformSign,\n flipSign,\n handleQuartetValues,\n includes,\n isBoolean,\n isFunction,\n isNullOrUndefined,\n isNumber,\n isObject,\n isString,\n getValuesAsList,\n}\n","import {\n includes,\n isNumber,\n calculateNewBackgroundPosition,\n flipTransformSign,\n handleQuartetValues,\n getValuesAsList,\n} from './utils'\n\n// some values require a little fudging, that fudging goes here.\nconst propertyValueConverters = {\n padding({value}) {\n if (isNumber(value)) {\n return value\n }\n return handleQuartetValues(value)\n },\n textShadow({value}) {\n // intentionally leaving off the `g` flag here because we only want to change the first number (which is the offset-x)\n return value.replace(/(-*)([.|\\d]+)/, (match, negative, number) => {\n if (number === '0') {\n return match\n }\n const doubleNegative = negative === '' ? '-' : ''\n return `${doubleNegative}${number}`\n })\n },\n borderColor({value}) {\n return handleQuartetValues(value)\n },\n borderRadius({value}) {\n if (isNumber(value)) {\n return value\n }\n if (includes(value, '/')) {\n const [radius1, radius2] = value.split('/')\n const convertedRadius1 = propertyValueConverters.borderRadius({\n value: radius1.trim(),\n })\n const convertedRadius2 = propertyValueConverters.borderRadius({\n value: radius2.trim(),\n })\n return `${convertedRadius1} / ${convertedRadius2}`\n }\n const splitValues = getValuesAsList(value)\n switch (splitValues.length) {\n case 2: {\n return splitValues.reverse().join(' ')\n }\n case 4: {\n const [topLeft, topRight, bottomRight, bottomLeft] = splitValues\n return [topRight, topLeft, bottomLeft, bottomRight].join(' ')\n }\n default: {\n return value\n }\n }\n },\n background({\n value,\n valuesToConvert,\n isRtl,\n bgImgDirectionRegex,\n bgPosDirectionRegex,\n }) {\n if (isNumber(value)) {\n return value\n }\n\n // Yeah, this is in need of a refactor 🙃...\n // but this property is a tough cookie 🍪\n // get the backgroundPosition out of the string by removing everything that couldn't be the backgroundPosition value\n const backgroundPositionValue = value\n .replace(\n /(url\\(.*?\\))|(rgba?\\(.*?\\))|(hsl\\(.*?\\))|(#[a-fA-F0-9]+)|((^| )(\\D)+( |$))/g,\n '',\n )\n .trim()\n // replace that backgroundPosition value with the converted version\n value = value.replace(\n backgroundPositionValue,\n propertyValueConverters.backgroundPosition({\n value: backgroundPositionValue,\n valuesToConvert,\n isRtl,\n bgPosDirectionRegex,\n }),\n )\n // do the backgroundImage value replacing on the whole value (because why not?)\n return propertyValueConverters.backgroundImage({\n value,\n valuesToConvert,\n bgImgDirectionRegex,\n })\n },\n backgroundImage({value, valuesToConvert, bgImgDirectionRegex}) {\n if (!includes(value, 'url(') && !includes(value, 'linear-gradient(')) {\n return value\n }\n return value.replace(bgImgDirectionRegex, (match, g1, group2) => {\n return match.replace(group2, valuesToConvert[group2])\n })\n },\n backgroundPosition({value, valuesToConvert, isRtl, bgPosDirectionRegex}) {\n return (\n value\n // intentionally only grabbing the first instance of this because that represents `left`\n .replace(isRtl ? /^((-|\\d|\\.)+%)/ : null, (match, group) =>\n calculateNewBackgroundPosition(group),\n )\n .replace(bgPosDirectionRegex, match => valuesToConvert[match])\n )\n },\n backgroundPositionX({value, valuesToConvert, isRtl, bgPosDirectionRegex}) {\n if (isNumber(value)) {\n return value\n }\n return propertyValueConverters.backgroundPosition({\n value,\n valuesToConvert,\n isRtl,\n bgPosDirectionRegex,\n })\n },\n transition({value, propertiesToConvert}) {\n return value\n .split(/,\\s*/g)\n .map(transition => {\n const values = transition.split(' ')\n\n // Property is always defined first\n values[0] = propertiesToConvert[values[0]] || values[0]\n\n return values.join(' ')\n })\n .join(', ')\n },\n transitionProperty({value, propertiesToConvert}) {\n return value\n .split(/,\\s*/g)\n .map(prop => propertiesToConvert[prop] || prop)\n .join(', ')\n },\n transform({value}) {\n // This was copied and modified from CSSJanus:\n // https://github.com/cssjanus/cssjanus/blob/4a40f001b1ba35567112d8b8e1d9d95eda4234c3/src/cssjanus.js#L152-L153\n const nonAsciiPattern = '[^\\\\u0020-\\\\u007e]'\n const unicodePattern = '(?:(?:\\\\[0-9a-f]{1,6})(?:\\\\r\\\\n|\\\\s)?)'\n const numPattern = '(?:[0-9]*\\\\.[0-9]+|[0-9]+)'\n const unitPattern = '(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)'\n const escapePattern = `(?:${unicodePattern}|\\\\\\\\[^\\\\r\\\\n\\\\f0-9a-f])`\n const nmstartPattern = `(?:[_a-z]|${nonAsciiPattern}|${escapePattern})`\n const nmcharPattern = `(?:[_a-z0-9-]|${nonAsciiPattern}|${escapePattern})`\n const identPattern = `-?${nmstartPattern}${nmcharPattern}*`\n const quantPattern = `${numPattern}(?:\\\\s*${unitPattern}|${identPattern})?`\n const signedQuantPattern = `((?:-?${quantPattern})|(?:inherit|auto))`\n const translateXRegExp = new RegExp(\n `(translateX\\\\s*\\\\(\\\\s*)${signedQuantPattern}(\\\\s*\\\\))`,\n 'gi',\n )\n const translateRegExp = new RegExp(\n `(translate\\\\s*\\\\(\\\\s*)${signedQuantPattern}((?:\\\\s*,\\\\s*${signedQuantPattern}){0,1}\\\\s*\\\\))`,\n 'gi',\n )\n const translate3dRegExp = new RegExp(\n `(translate3d\\\\s*\\\\(\\\\s*)${signedQuantPattern}((?:\\\\s*,\\\\s*${signedQuantPattern}){0,2}\\\\s*\\\\))`,\n 'gi',\n )\n const rotateRegExp = new RegExp(\n `(rotate[ZY]?\\\\s*\\\\(\\\\s*)${signedQuantPattern}(\\\\s*\\\\))`,\n 'gi',\n )\n return value\n .replace(translateXRegExp, flipTransformSign)\n .replace(translateRegExp, flipTransformSign)\n .replace(translate3dRegExp, flipTransformSign)\n .replace(rotateRegExp, flipTransformSign)\n },\n}\n\npropertyValueConverters.objectPosition =\n propertyValueConverters.backgroundPosition\npropertyValueConverters.margin = propertyValueConverters.padding\npropertyValueConverters.borderWidth = propertyValueConverters.padding\npropertyValueConverters.boxShadow = propertyValueConverters.textShadow\npropertyValueConverters.webkitBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.mozBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.WebkitBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.MozBoxShadow = propertyValueConverters.boxShadow\npropertyValueConverters.borderStyle = propertyValueConverters.borderColor\npropertyValueConverters.webkitTransform = propertyValueConverters.transform\npropertyValueConverters.mozTransform = propertyValueConverters.transform\npropertyValueConverters.WebkitTransform = propertyValueConverters.transform\npropertyValueConverters.MozTransform = propertyValueConverters.transform\npropertyValueConverters.transformOrigin =\n propertyValueConverters.backgroundPosition\npropertyValueConverters.webkitTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.mozTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.WebkitTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.MozTransformOrigin =\n propertyValueConverters.transformOrigin\npropertyValueConverters.webkitTransition = propertyValueConverters.transition\npropertyValueConverters.mozTransition = propertyValueConverters.transition\npropertyValueConverters.WebkitTransition = propertyValueConverters.transition\npropertyValueConverters.MozTransition = propertyValueConverters.transition\npropertyValueConverters.webkitTransitionProperty =\n propertyValueConverters.transitionProperty\npropertyValueConverters.mozTransitionProperty =\n propertyValueConverters.transitionProperty\npropertyValueConverters.WebkitTransitionProperty =\n propertyValueConverters.transitionProperty\npropertyValueConverters.MozTransitionProperty =\n propertyValueConverters.transitionProperty\n\n// kebab-case versions\n\npropertyValueConverters['text-shadow'] = propertyValueConverters.textShadow\npropertyValueConverters['border-color'] = propertyValueConverters.borderColor\npropertyValueConverters['border-radius'] = propertyValueConverters.borderRadius\npropertyValueConverters['background-image'] =\n propertyValueConverters.backgroundImage\npropertyValueConverters['background-position'] =\n propertyValueConverters.backgroundPosition\npropertyValueConverters['background-position-x'] =\n propertyValueConverters.backgroundPositionX\npropertyValueConverters['object-position'] =\n propertyValueConverters.objectPosition\npropertyValueConverters['border-width'] = propertyValueConverters.padding\npropertyValueConverters['box-shadow'] = propertyValueConverters.textShadow\npropertyValueConverters['-webkit-box-shadow'] =\n propertyValueConverters.textShadow\npropertyValueConverters['-moz-box-shadow'] = propertyValueConverters.textShadow\npropertyValueConverters['border-style'] = propertyValueConverters.borderColor\npropertyValueConverters['-webkit-transform'] = propertyValueConverters.transform\npropertyValueConverters['-moz-transform'] = propertyValueConverters.transform\npropertyValueConverters['transform-origin'] =\n propertyValueConverters.transformOrigin\npropertyValueConverters['-webkit-transform-origin'] =\n propertyValueConverters.transformOrigin\npropertyValueConverters['-moz-transform-origin'] =\n propertyValueConverters.transformOrigin\npropertyValueConverters['-webkit-transition'] =\n propertyValueConverters.transition\npropertyValueConverters['-moz-transition'] = propertyValueConverters.transition\npropertyValueConverters['transition-property'] =\n propertyValueConverters.transitionProperty\npropertyValueConverters['-webkit-transition-property'] =\n propertyValueConverters.transitionProperty\npropertyValueConverters['-moz-transition-property'] =\n propertyValueConverters.transitionProperty\n\nexport default propertyValueConverters\n","import {\n includes,\n arrayToObject,\n isBoolean,\n isFunction,\n isNumber,\n isObject,\n isString,\n isNullOrUndefined,\n} from './utils'\nimport propertyValueConverters from './property-value-converters'\n\n// this will be an object of properties that map to their corresponding rtl property (their doppelganger)\nexport const propertiesToConvert = arrayToObject([\n ['paddingLeft', 'paddingRight'],\n ['marginLeft', 'marginRight'],\n ['left', 'right'],\n ['borderLeft', 'borderRight'],\n ['borderLeftColor', 'borderRightColor'],\n ['borderLeftStyle', 'borderRightStyle'],\n ['borderLeftWidth', 'borderRightWidth'],\n ['borderTopLeftRadius', 'borderTopRightRadius'],\n ['borderBottomLeftRadius', 'borderBottomRightRadius'],\n // kebab-case versions\n ['padding-left', 'padding-right'],\n ['margin-left', 'margin-right'],\n ['border-left', 'border-right'],\n ['border-left-color', 'border-right-color'],\n ['border-left-style', 'border-right-style'],\n ['border-left-width', 'border-right-width'],\n ['border-top-left-radius', 'border-top-right-radius'],\n ['border-bottom-left-radius', 'border-bottom-right-radius'],\n])\n\nexport const propsToIgnore = ['content']\n\n// this is the same as the propertiesToConvert except for values\nexport const valuesToConvert = arrayToObject([\n ['ltr', 'rtl'],\n ['left', 'right'],\n ['w-resize', 'e-resize'],\n ['sw-resize', 'se-resize'],\n ['nw-resize', 'ne-resize'],\n])\n\n// Sorry for the regex 😞, but basically thisis used to replace _every_ instance of\n// `ltr`, `rtl`, `right`, and `left` in `backgroundimage` with the corresponding opposite.\n// A situation we're accepting here:\n// url('/left/right/rtl/ltr.png') will be changed to url('/right/left/ltr/rtl.png')\n// Definite trade-offs here, but I think it's a good call.\nconst bgImgDirectionRegex = new RegExp(\n '(^|\\\\W|_)((ltr)|(rtl)|(left)|(right))(\\\\W|_|$)',\n 'g',\n)\nconst bgPosDirectionRegex = new RegExp('(left)|(right)')\n\n/**\n * converts properties and values in the CSS in JS object to their corresponding RTL values\n * @param {Object} object the CSS in JS object\n * @return {Object} the RTL converted object\n */\nexport function convert(object) {\n return Object.keys(object).reduce(\n (newObj, originalKey) => {\n let originalValue = object[originalKey]\n if (isString(originalValue)) {\n // you're welcome to later code 😺\n originalValue = originalValue.trim()\n }\n\n // Some properties should never be transformed\n if (includes(propsToIgnore, originalKey)) {\n newObj[originalKey] = originalValue\n return newObj\n }\n\n const {key, value} = convertProperty(originalKey, originalValue)\n newObj[key] = value\n return newObj\n },\n Array.isArray(object) ? [] : {},\n )\n}\n\n/**\n * Converts a property and its value to the corresponding RTL key and value\n * @param {String} originalKey the original property key\n * @param {Number|String|Object} originalValue the original css property value\n * @return {Object} the new {key, value} pair\n */\nexport function convertProperty(originalKey, originalValue) {\n const isNoFlip = /\\/\\*\\s?@noflip\\s?\\*\\//.test(originalValue)\n const key = isNoFlip ? originalKey : getPropertyDoppelganger(originalKey)\n const value = isNoFlip\n ? originalValue\n : getValueDoppelganger(key, originalValue)\n return {key, value}\n}\n\n/**\n * This gets the RTL version of the given property if it has a corresponding RTL property\n * @param {String} property the name of the property\n * @return {String} the name of the RTL property\n */\nexport function getPropertyDoppelganger(property) {\n return propertiesToConvert[property] || property\n}\n\n/**\n * This converts the given value to the RTL version of that value based on the key\n * @param {String} key this is the key (note: this should be the RTL version of the originalKey)\n * @param {String|Number|Object} originalValue the original css property value. If it's an object, then we'll convert that as well\n * @return {String|Number|Object} the converted value\n */\nexport function getValueDoppelganger(key, originalValue) {\n /* eslint complexity:[2, 10] */ // let's try to keep the complexity down... If we have to do this much more, let's break this up\n if (isNullOrUndefined(originalValue) || isBoolean(originalValue)) {\n return originalValue\n }\n\n if (isObject(originalValue)) {\n return convert(originalValue) // recurssion 🌀\n }\n const isNum = isNumber(originalValue)\n const isFunc = isFunction(originalValue)\n\n const importantlessValue =\n isNum || isFunc\n ? originalValue\n : originalValue.replace(/ !important.*?$/, '')\n const isImportant =\n !isNum && importantlessValue.length !== originalValue.length\n const valueConverter = propertyValueConverters[key]\n let newValue\n if (valueConverter) {\n newValue = valueConverter({\n value: importantlessValue,\n valuesToConvert,\n propertiesToConvert,\n isRtl: true,\n bgImgDirectionRegex,\n bgPosDirectionRegex,\n })\n } else {\n newValue = valuesToConvert[importantlessValue] || importantlessValue\n }\n if (isImportant) {\n return `${newValue} !important`\n }\n return newValue\n}\n"],"names":["arrayToObject","array","reduce","obj","prop1","prop2","isNumber","val","includes","inclusive","inclusee","indexOf","flipTransformSign","match","prefix","offset","suffix","value","parseFloat","slice","getValuesAsList","replace","split","map","i","trim","filter","Boolean","item","list","state","openParansCount","length","closedParansCount","parensDepth","push","handleQuartetValues","splitValues","top","right","bottom","join","propertyValueConverters","padding","textShadow","negative","number","borderColor","borderRadius","radius1","radius2","reverse","topLeft","topRight","bottomRight","background","valuesToConvert","isRtl","bgImgDirectionRegex","bgPosDirectionRegex","backgroundPositionValue","backgroundPosition","backgroundImage","g1","group2","group","idx","len","toFixed","calculateNewBackgroundPosition","backgroundPositionX","transition","propertiesToConvert","values","transitionProperty","prop","transform","escapePattern","signedQuantPattern","translateXRegExp","RegExp","translateRegExp","translate3dRegExp","rotateRegExp","objectPosition","margin","borderWidth","boxShadow","webkitBoxShadow","mozBoxShadow","WebkitBoxShadow","MozBoxShadow","borderStyle","webkitTransform","mozTransform","WebkitTransform","MozTransform","transformOrigin","webkitTransformOrigin","mozTransformOrigin","WebkitTransformOrigin","MozTransformOrigin","webkitTransition","mozTransition","WebkitTransition","MozTransition","webkitTransitionProperty","mozTransitionProperty","WebkitTransitionProperty","MozTransitionProperty","propsToIgnore","convert","object","Object","keys","newObj","originalKey","originalValue","isNoFlip","test","key","property","isNullOrUndefined","isBoolean","isObject","newValue","isNum","isFunc","isFunction","importantlessValue","isImportant","valueConverter","getValueDoppelganger","convertProperty","Array","isArray"],"mappings":"+LAKA,SAASA,EAAcC,UACdA,EAAMC,QAAO,SAACC,SAAMC,OAAOC,cAChCF,EAAIC,GAASC,EACbF,EAAIE,GAASD,EACND,IACN,IAWL,SAASG,EAASC,SACM,iBAARA,EAehB,SAASC,EAASC,EAAWC,UACa,IAAjCD,EAAUE,QAAQD,GAyB3B,SAASE,EAAkBC,EAAOC,EAAQC,EAAQC,UACzCF,GAdSG,EAcSF,EAbC,IAAtBG,WAAWD,GAENA,EAGQ,MAAbA,EAAM,GACDA,EAAME,MAAM,OAGVF,GAIwBD,EAdrC,IAAkBC,EA0ClB,SAASG,EAAgBH,UAErBA,EACGI,QAAQ,MAAO,KACfC,MAAM,KACNC,KAAI,SAAAC,UAAKA,EAAEC,UACXC,OAAOC,SAGPzB,QACC,WAAgB0B,OAAdC,IAAAA,KAAMC,IAAAA,MACAC,GAAmBH,EAAKf,MAAM,QAAU,IAAImB,OAC5CC,GAAqBL,EAAKf,MAAM,QAAU,IAAImB,cAChDF,EAAMI,YAAc,EACtBL,EAAKA,EAAKG,OAAS,GAAQH,EAAKA,EAAKG,OAAS,OAAMJ,EAEpDC,EAAKM,KAAKP,GAEZE,EAAMI,aAAeH,EAAkBE,EAChC,CAACJ,KAAAA,EAAMC,MAAAA,KAEhB,CAACD,KAAM,GAAIC,MAAO,CAACI,YAAa,KAChCL,KAUR,SAASO,EAAoBnB,OACrBoB,EAAcjB,EAAgBH,MAChCoB,EAAYL,QAAU,GAAKK,EAAYL,OAAS,SAC3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IAEXA,EAAgBA,EAAc5F,QAI5BjB,EAASsG,EAAeM,UAC1BD,EAAOC,GAAeC,EACfF,QAiBR,SAAyBC,EAAaC,OACrCC,EAAW,wBAAwBC,KAAKF,GACxCG,EAAMF,EAAWF,GAYeK,EAZuBL,EAatD5C,EAAoBiD,IAAaA,GAZlCxG,EAAQqG,EACVD,EAoBC,SAA8BG,EAAKH,MFzF1C,SAA2B9G,UAClBA,MAAAA,EE0FHmH,CAAkBL,IFvGxB,SAAmB9G,SACK,kBAARA,EEsG0BoH,CAAUN,UACzCA,KFxFX,SAAkB9G,UACTA,GAAsB,iBAARA,EE0FjBqH,CAASP,UACJN,EAAQM,OAYbQ,EAVEC,EAAQxH,EAAS+G,GACjBU,EF3GR,SAAoBxH,SACI,mBAARA,EE0GCyH,CAAWX,GAEpBY,EACJH,GAASC,EACLV,EACAA,EAAchG,QAAQ,kBAAmB,IACzC6G,GACHJ,GAASG,EAAmBjG,SAAWqF,EAAcrF,OAClDmG,EAAiBzF,EAAwB8E,GAG7CK,EADEM,EACSA,EAAe,CACxBlH,MAAOgH,EACPzE,gBAAAA,EACAgB,oBAAAA,EACAf,OAAO,EACPC,oBAAAA,EACAC,oBAAAA,IAGSH,EAAgByE,IAAuBA,KAEhDC,SACQL,uBAELA,EAtDHO,CAAqBZ,EAAKH,GASzB,IAAiCI,QAR/B,CAACD,IAAAA,EAAKvG,MAAAA,GApBYoH,CAAgBjB,EAAaC,GAA3CG,IAAAA,IAAKvG,IAAAA,aACZkG,EAAOK,GAAOvG,EACPkG,IAETmB,MAAMC,QAAQvB,GAAU,GAAK"}
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "rtl-css-js",
3
+ "version": "1.14.2",
4
+ "description": "Right To Left conversion for CSS in JS objects",
5
+ "main": "dist/cjs/index.js",
6
+ "jsnext:main": "dist/esm/index.js",
7
+ "module": "dist/esm/index.js",
8
+ "types": "types.d.ts",
9
+ "scripts": {
10
+ "build": "rimraf dist && npm-run-all build:**",
11
+ "build:bundlers": "kcd-scripts build --bundle cjs,esm --environment BUILD_INPUT:src/*.js --no-clean",
12
+ "build:umd:main": "kcd-scripts build --bundle umd,umd.min BUILD_NAME:rtlCSSJS --no-clean",
13
+ "build:umd:core": "kcd-scripts build --bundle umd,umd.min --environment BUILD_NAME:rtlCSSJSCore,BUILD_FILENAME_SUFFIX:\".core\",BUILD_INPUT:src/core.js --no-clean",
14
+ "postbuild:bundlers": "node scripts/add-proxies-typings.js",
15
+ "lint": "kcd-scripts lint",
16
+ "test": "kcd-scripts test",
17
+ "test:update": "npm run test -s -- --coverage --updateSnapshot",
18
+ "validate": "kcd-scripts validate"
19
+ },
20
+ "husky": {
21
+ "hooks": {
22
+ "pre-commit": "kcd-scripts pre-commit"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "core",
28
+ "types.d.ts",
29
+ "core.d.ts",
30
+ "core.esm.js",
31
+ "core.esm.d.ts"
32
+ ],
33
+ "keywords": [
34
+ "css-in-js",
35
+ "ltr",
36
+ "rtl",
37
+ "cssjanus"
38
+ ],
39
+ "author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
40
+ "license": "MIT",
41
+ "devDependencies": {
42
+ "kcd-scripts": "^1.11.0",
43
+ "npm-run-all": "^4.1.1",
44
+ "rimraf": "^3.0.0",
45
+ "tiny-glob": "^0.2.0"
46
+ },
47
+ "eslintConfig": {
48
+ "extends": "./node_modules/kcd-scripts/eslint.js"
49
+ },
50
+ "eslintIgnore": [
51
+ "node_modules",
52
+ "coverage",
53
+ "dist"
54
+ ],
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/kentcdodds/rtl-css-js.git"
58
+ },
59
+ "bugs": {
60
+ "url": "https://github.com/kentcdodds/rtl-css-js/issues"
61
+ },
62
+ "homepage": "https://github.com/kentcdodds/rtl-css-js#readme",
63
+ "dependencies": {
64
+ "@babel/runtime": "^7.1.2"
65
+ }
66
+ }
@@ -0,0 +1,8 @@
1
+ declare interface RtlCSSJS {
2
+ default: RtlCSSJS
3
+ <T extends object = object>(o: T): T
4
+ }
5
+
6
+ declare const rtlCSSJS: RtlCSSJS
7
+
8
+ export = rtlCSSJS
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Facebook, Inc. and its affiliates.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ # `scheduler`
2
+
3
+ This is a package for cooperative scheduling in a browser environment. It is currently used internally by React, but we plan to make it more generic.
4
+
5
+ The public API for this package is not yet finalized.
6
+
7
+ ### Thanks
8
+
9
+ The React team thanks [Anton Podviaznikov](https://podviaznikov.com/) for donating the `scheduler` package name.
@@ -0,0 +1,8 @@
1
+ {
2
+ "branch": "pull/21051",
3
+ "buildNumber": "287151",
4
+ "checksum": "94f5c65",
5
+ "commit": "12adaffef",
6
+ "environment": "ci",
7
+ "reactVersion": "17.0.0-12adaffef"
8
+ }
@@ -0,0 +1,347 @@
1
+ /** @license React v0.20.2
2
+ * scheduler-tracing.development.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ if (process.env.NODE_ENV !== "production") {
13
+ (function() {
14
+ 'use strict';
15
+
16
+ var DEFAULT_THREAD_ID = 0; // Counters used to generate unique IDs.
17
+
18
+ var interactionIDCounter = 0;
19
+ var threadIDCounter = 0; // Set of currently traced interactions.
20
+ // Interactions "stack"–
21
+ // Meaning that newly traced interactions are appended to the previously active set.
22
+ // When an interaction goes out of scope, the previous set (if any) is restored.
23
+
24
+ exports.__interactionsRef = null; // Listener(s) to notify when interactions begin and end.
25
+
26
+ exports.__subscriberRef = null;
27
+
28
+ {
29
+ exports.__interactionsRef = {
30
+ current: new Set()
31
+ };
32
+ exports.__subscriberRef = {
33
+ current: null
34
+ };
35
+ }
36
+ function unstable_clear(callback) {
37
+
38
+ var prevInteractions = exports.__interactionsRef.current;
39
+ exports.__interactionsRef.current = new Set();
40
+
41
+ try {
42
+ return callback();
43
+ } finally {
44
+ exports.__interactionsRef.current = prevInteractions;
45
+ }
46
+ }
47
+ function unstable_getCurrent() {
48
+ {
49
+ return exports.__interactionsRef.current;
50
+ }
51
+ }
52
+ function unstable_getThreadID() {
53
+ return ++threadIDCounter;
54
+ }
55
+ function unstable_trace(name, timestamp, callback) {
56
+ var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
57
+
58
+ var interaction = {
59
+ __count: 1,
60
+ id: interactionIDCounter++,
61
+ name: name,
62
+ timestamp: timestamp
63
+ };
64
+ var prevInteractions = exports.__interactionsRef.current; // Traced interactions should stack/accumulate.
65
+ // To do that, clone the current interactions.
66
+ // The previous set will be restored upon completion.
67
+
68
+ var interactions = new Set(prevInteractions);
69
+ interactions.add(interaction);
70
+ exports.__interactionsRef.current = interactions;
71
+ var subscriber = exports.__subscriberRef.current;
72
+ var returnValue;
73
+
74
+ try {
75
+ if (subscriber !== null) {
76
+ subscriber.onInteractionTraced(interaction);
77
+ }
78
+ } finally {
79
+ try {
80
+ if (subscriber !== null) {
81
+ subscriber.onWorkStarted(interactions, threadID);
82
+ }
83
+ } finally {
84
+ try {
85
+ returnValue = callback();
86
+ } finally {
87
+ exports.__interactionsRef.current = prevInteractions;
88
+
89
+ try {
90
+ if (subscriber !== null) {
91
+ subscriber.onWorkStopped(interactions, threadID);
92
+ }
93
+ } finally {
94
+ interaction.__count--; // If no async work was scheduled for this interaction,
95
+ // Notify subscribers that it's completed.
96
+
97
+ if (subscriber !== null && interaction.__count === 0) {
98
+ subscriber.onInteractionScheduledWorkCompleted(interaction);
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+
105
+ return returnValue;
106
+ }
107
+ function unstable_wrap(callback) {
108
+ var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
109
+
110
+ var wrappedInteractions = exports.__interactionsRef.current;
111
+ var subscriber = exports.__subscriberRef.current;
112
+
113
+ if (subscriber !== null) {
114
+ subscriber.onWorkScheduled(wrappedInteractions, threadID);
115
+ } // Update the pending async work count for the current interactions.
116
+ // Update after calling subscribers in case of error.
117
+
118
+
119
+ wrappedInteractions.forEach(function (interaction) {
120
+ interaction.__count++;
121
+ });
122
+ var hasRun = false;
123
+
124
+ function wrapped() {
125
+ var prevInteractions = exports.__interactionsRef.current;
126
+ exports.__interactionsRef.current = wrappedInteractions;
127
+ subscriber = exports.__subscriberRef.current;
128
+
129
+ try {
130
+ var returnValue;
131
+
132
+ try {
133
+ if (subscriber !== null) {
134
+ subscriber.onWorkStarted(wrappedInteractions, threadID);
135
+ }
136
+ } finally {
137
+ try {
138
+ returnValue = callback.apply(undefined, arguments);
139
+ } finally {
140
+ exports.__interactionsRef.current = prevInteractions;
141
+
142
+ if (subscriber !== null) {
143
+ subscriber.onWorkStopped(wrappedInteractions, threadID);
144
+ }
145
+ }
146
+ }
147
+
148
+ return returnValue;
149
+ } finally {
150
+ if (!hasRun) {
151
+ // We only expect a wrapped function to be executed once,
152
+ // But in the event that it's executed more than once–
153
+ // Only decrement the outstanding interaction counts once.
154
+ hasRun = true; // Update pending async counts for all wrapped interactions.
155
+ // If this was the last scheduled async work for any of them,
156
+ // Mark them as completed.
157
+
158
+ wrappedInteractions.forEach(function (interaction) {
159
+ interaction.__count--;
160
+
161
+ if (subscriber !== null && interaction.__count === 0) {
162
+ subscriber.onInteractionScheduledWorkCompleted(interaction);
163
+ }
164
+ });
165
+ }
166
+ }
167
+ }
168
+
169
+ wrapped.cancel = function cancel() {
170
+ subscriber = exports.__subscriberRef.current;
171
+
172
+ try {
173
+ if (subscriber !== null) {
174
+ subscriber.onWorkCanceled(wrappedInteractions, threadID);
175
+ }
176
+ } finally {
177
+ // Update pending async counts for all wrapped interactions.
178
+ // If this was the last scheduled async work for any of them,
179
+ // Mark them as completed.
180
+ wrappedInteractions.forEach(function (interaction) {
181
+ interaction.__count--;
182
+
183
+ if (subscriber && interaction.__count === 0) {
184
+ subscriber.onInteractionScheduledWorkCompleted(interaction);
185
+ }
186
+ });
187
+ }
188
+ };
189
+
190
+ return wrapped;
191
+ }
192
+
193
+ var subscribers = null;
194
+
195
+ {
196
+ subscribers = new Set();
197
+ }
198
+
199
+ function unstable_subscribe(subscriber) {
200
+ {
201
+ subscribers.add(subscriber);
202
+
203
+ if (subscribers.size === 1) {
204
+ exports.__subscriberRef.current = {
205
+ onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
206
+ onInteractionTraced: onInteractionTraced,
207
+ onWorkCanceled: onWorkCanceled,
208
+ onWorkScheduled: onWorkScheduled,
209
+ onWorkStarted: onWorkStarted,
210
+ onWorkStopped: onWorkStopped
211
+ };
212
+ }
213
+ }
214
+ }
215
+ function unstable_unsubscribe(subscriber) {
216
+ {
217
+ subscribers.delete(subscriber);
218
+
219
+ if (subscribers.size === 0) {
220
+ exports.__subscriberRef.current = null;
221
+ }
222
+ }
223
+ }
224
+
225
+ function onInteractionTraced(interaction) {
226
+ var didCatchError = false;
227
+ var caughtError = null;
228
+ subscribers.forEach(function (subscriber) {
229
+ try {
230
+ subscriber.onInteractionTraced(interaction);
231
+ } catch (error) {
232
+ if (!didCatchError) {
233
+ didCatchError = true;
234
+ caughtError = error;
235
+ }
236
+ }
237
+ });
238
+
239
+ if (didCatchError) {
240
+ throw caughtError;
241
+ }
242
+ }
243
+
244
+ function onInteractionScheduledWorkCompleted(interaction) {
245
+ var didCatchError = false;
246
+ var caughtError = null;
247
+ subscribers.forEach(function (subscriber) {
248
+ try {
249
+ subscriber.onInteractionScheduledWorkCompleted(interaction);
250
+ } catch (error) {
251
+ if (!didCatchError) {
252
+ didCatchError = true;
253
+ caughtError = error;
254
+ }
255
+ }
256
+ });
257
+
258
+ if (didCatchError) {
259
+ throw caughtError;
260
+ }
261
+ }
262
+
263
+ function onWorkScheduled(interactions, threadID) {
264
+ var didCatchError = false;
265
+ var caughtError = null;
266
+ subscribers.forEach(function (subscriber) {
267
+ try {
268
+ subscriber.onWorkScheduled(interactions, threadID);
269
+ } catch (error) {
270
+ if (!didCatchError) {
271
+ didCatchError = true;
272
+ caughtError = error;
273
+ }
274
+ }
275
+ });
276
+
277
+ if (didCatchError) {
278
+ throw caughtError;
279
+ }
280
+ }
281
+
282
+ function onWorkStarted(interactions, threadID) {
283
+ var didCatchError = false;
284
+ var caughtError = null;
285
+ subscribers.forEach(function (subscriber) {
286
+ try {
287
+ subscriber.onWorkStarted(interactions, threadID);
288
+ } catch (error) {
289
+ if (!didCatchError) {
290
+ didCatchError = true;
291
+ caughtError = error;
292
+ }
293
+ }
294
+ });
295
+
296
+ if (didCatchError) {
297
+ throw caughtError;
298
+ }
299
+ }
300
+
301
+ function onWorkStopped(interactions, threadID) {
302
+ var didCatchError = false;
303
+ var caughtError = null;
304
+ subscribers.forEach(function (subscriber) {
305
+ try {
306
+ subscriber.onWorkStopped(interactions, threadID);
307
+ } catch (error) {
308
+ if (!didCatchError) {
309
+ didCatchError = true;
310
+ caughtError = error;
311
+ }
312
+ }
313
+ });
314
+
315
+ if (didCatchError) {
316
+ throw caughtError;
317
+ }
318
+ }
319
+
320
+ function onWorkCanceled(interactions, threadID) {
321
+ var didCatchError = false;
322
+ var caughtError = null;
323
+ subscribers.forEach(function (subscriber) {
324
+ try {
325
+ subscriber.onWorkCanceled(interactions, threadID);
326
+ } catch (error) {
327
+ if (!didCatchError) {
328
+ didCatchError = true;
329
+ caughtError = error;
330
+ }
331
+ }
332
+ });
333
+
334
+ if (didCatchError) {
335
+ throw caughtError;
336
+ }
337
+ }
338
+
339
+ exports.unstable_clear = unstable_clear;
340
+ exports.unstable_getCurrent = unstable_getCurrent;
341
+ exports.unstable_getThreadID = unstable_getThreadID;
342
+ exports.unstable_subscribe = unstable_subscribe;
343
+ exports.unstable_trace = unstable_trace;
344
+ exports.unstable_unsubscribe = unstable_unsubscribe;
345
+ exports.unstable_wrap = unstable_wrap;
346
+ })();
347
+ }