@sitecore/sc-contenthub-blok 0.0.91 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (891) hide show
  1. package/dist/Components/BlokBadge/BlokBadge.spec.js +1 -1
  2. package/dist/Components/BlokBadge/BlokBadge.spec.js.map +1 -1
  3. package/dist/Components/BlokButton/BlokButton.d.ts +3 -4
  4. package/dist/Components/BlokButton/BlokButton.js +3 -3
  5. package/dist/Components/BlokButton/BlokButton.js.map +1 -1
  6. package/dist/Components/BlokIcon/BlokIcon.d.ts +2 -1
  7. package/dist/Components/BlokIcon/BlokIcon.js +3 -3
  8. package/dist/Components/BlokIcon/BlokIcon.js.map +1 -1
  9. package/dist/Components/BlokIcon/iconNames.d.ts +1 -1
  10. package/dist/Components/BlokIcon/iconNames.js +1 -0
  11. package/dist/Components/BlokIcon/iconNames.js.map +1 -1
  12. package/dist/Components/BlokIconButton/BlokIconButton.d.ts +2 -4
  13. package/dist/Components/BlokIconButton/BlokIconButton.js +3 -3
  14. package/dist/Components/BlokIconButton/BlokIconButton.js.map +1 -1
  15. package/dist/Components/BlokSearchBox/BlokSearchBox.d.ts +3 -2
  16. package/dist/Components/BlokSearchBox/BlokSearchBox.js +3 -2
  17. package/dist/Components/BlokSearchBox/BlokSearchBox.js.map +1 -1
  18. package/dist/Components/BlokTooltip/BlokTooltip.js +0 -4
  19. package/dist/Components/BlokTooltip/BlokTooltip.js.map +1 -1
  20. package/esm/Components/BlokButton/BlokButton.js +2 -3
  21. package/esm/Components/BlokButton/BlokButton.js.map +1 -1
  22. package/esm/Components/BlokIcon/BlokIcon.js +2 -3
  23. package/esm/Components/BlokIcon/BlokIcon.js.map +1 -1
  24. package/esm/Components/BlokIcon/iconNames.js +1 -0
  25. package/esm/Components/BlokIcon/iconNames.js.map +1 -1
  26. package/esm/Components/BlokIconButton/BlokIconButton.js +2 -3
  27. package/esm/Components/BlokIconButton/BlokIconButton.js.map +1 -1
  28. package/esm/Components/BlokSearchBox/BlokSearchBox.js +3 -3
  29. package/esm/Components/BlokSearchBox/BlokSearchBox.js.map +1 -1
  30. package/esm/Components/BlokTooltip/BlokTooltip.js +0 -4
  31. package/esm/Components/BlokTooltip/BlokTooltip.js.map +1 -1
  32. package/node_modules/@babel/code-frame/package.json +3 -3
  33. package/node_modules/@babel/generator/lib/generators/classes.js +7 -4
  34. package/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
  35. package/node_modules/@babel/generator/lib/generators/deprecated.js +28 -0
  36. package/node_modules/@babel/generator/lib/generators/deprecated.js.map +1 -0
  37. package/node_modules/@babel/generator/lib/generators/expressions.js +17 -12
  38. package/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
  39. package/node_modules/@babel/generator/lib/generators/jsx.js +6 -1
  40. package/node_modules/@babel/generator/lib/generators/jsx.js.map +1 -1
  41. package/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
  42. package/node_modules/@babel/generator/lib/generators/modules.js +8 -3
  43. package/node_modules/@babel/generator/lib/generators/modules.js.map +1 -1
  44. package/node_modules/@babel/generator/lib/generators/statements.js +1 -4
  45. package/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
  46. package/node_modules/@babel/generator/lib/generators/template-literals.js +16 -11
  47. package/node_modules/@babel/generator/lib/generators/template-literals.js.map +1 -1
  48. package/node_modules/@babel/generator/lib/generators/types.js +4 -9
  49. package/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  50. package/node_modules/@babel/generator/lib/generators/typescript.js +40 -18
  51. package/node_modules/@babel/generator/lib/generators/typescript.js.map +1 -1
  52. package/node_modules/@babel/generator/lib/index.js +3 -1
  53. package/node_modules/@babel/generator/lib/index.js.map +1 -1
  54. package/node_modules/@babel/generator/lib/node/index.js +11 -8
  55. package/node_modules/@babel/generator/lib/node/index.js.map +1 -1
  56. package/node_modules/@babel/generator/lib/node/parentheses.js +44 -7
  57. package/node_modules/@babel/generator/lib/node/parentheses.js.map +1 -1
  58. package/node_modules/@babel/generator/lib/printer.js +31 -24
  59. package/node_modules/@babel/generator/lib/printer.js.map +1 -1
  60. package/node_modules/@babel/generator/package.json +9 -9
  61. package/node_modules/@babel/helper-globals/LICENSE +22 -0
  62. package/node_modules/@babel/helper-globals/README.md +19 -0
  63. package/node_modules/@babel/helper-globals/data/browser-upper.json +911 -0
  64. package/node_modules/@babel/helper-globals/data/builtin-lower.json +15 -0
  65. package/node_modules/@babel/helper-globals/data/builtin-upper.json +51 -0
  66. package/node_modules/@babel/helper-globals/package.json +32 -0
  67. package/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +1 -1
  68. package/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +1 -1
  69. package/node_modules/@babel/helper-module-imports/package.json +4 -4
  70. package/node_modules/@babel/helper-string-parser/package.json +1 -1
  71. package/node_modules/@babel/helper-validator-identifier/package.json +1 -1
  72. package/node_modules/@babel/parser/bin/babel-parser.js +1 -1
  73. package/node_modules/@babel/parser/lib/index.js +5814 -5255
  74. package/node_modules/@babel/parser/lib/index.js.map +1 -1
  75. package/node_modules/@babel/parser/package.json +7 -7
  76. package/node_modules/@babel/parser/typings/babel-parser.d.ts +137 -165
  77. package/node_modules/@babel/template/lib/options.js +1 -1
  78. package/node_modules/@babel/template/lib/options.js.map +1 -1
  79. package/node_modules/@babel/template/lib/parse.js +3 -0
  80. package/node_modules/@babel/template/lib/parse.js.map +1 -1
  81. package/node_modules/@babel/template/lib/populate.js +2 -1
  82. package/node_modules/@babel/template/lib/populate.js.map +1 -1
  83. package/node_modules/@babel/template/package.json +4 -4
  84. package/node_modules/@babel/traverse/lib/cache.js +10 -16
  85. package/node_modules/@babel/traverse/lib/cache.js.map +1 -1
  86. package/node_modules/@babel/traverse/lib/index.js +8 -16
  87. package/node_modules/@babel/traverse/lib/index.js.map +1 -1
  88. package/node_modules/@babel/traverse/lib/path/ancestry.js +1 -3
  89. package/node_modules/@babel/traverse/lib/path/ancestry.js.map +1 -1
  90. package/node_modules/@babel/traverse/lib/path/context.js +0 -15
  91. package/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
  92. package/node_modules/@babel/traverse/lib/path/conversion.js +7 -4
  93. package/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
  94. package/node_modules/@babel/traverse/lib/path/evaluation.js +23 -2
  95. package/node_modules/@babel/traverse/lib/path/evaluation.js.map +1 -1
  96. package/node_modules/@babel/traverse/lib/path/family.js +13 -7
  97. package/node_modules/@babel/traverse/lib/path/family.js.map +1 -1
  98. package/node_modules/@babel/traverse/lib/path/index.js +2 -1
  99. package/node_modules/@babel/traverse/lib/path/index.js.map +1 -1
  100. package/node_modules/@babel/traverse/lib/path/introspection.js.map +1 -1
  101. package/node_modules/@babel/traverse/lib/path/lib/hoister.js.map +1 -1
  102. package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js +1 -1
  103. package/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -1
  104. package/node_modules/@babel/traverse/lib/path/modification.js +3 -2
  105. package/node_modules/@babel/traverse/lib/path/modification.js.map +1 -1
  106. package/node_modules/@babel/traverse/lib/path/removal.js +2 -1
  107. package/node_modules/@babel/traverse/lib/path/removal.js.map +1 -1
  108. package/node_modules/@babel/traverse/lib/path/replacement.js +2 -2
  109. package/node_modules/@babel/traverse/lib/path/replacement.js.map +1 -1
  110. package/node_modules/@babel/traverse/lib/scope/binding.js +4 -3
  111. package/node_modules/@babel/traverse/lib/scope/binding.js.map +1 -1
  112. package/node_modules/@babel/traverse/lib/scope/index.js +99 -39
  113. package/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  114. package/node_modules/@babel/traverse/lib/traverse-node.js +109 -0
  115. package/node_modules/@babel/traverse/lib/traverse-node.js.map +1 -1
  116. package/node_modules/@babel/traverse/lib/types.js +1 -1
  117. package/node_modules/@babel/traverse/lib/visitors.js +6 -4
  118. package/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  119. package/node_modules/@babel/traverse/package.json +10 -10
  120. package/node_modules/@babel/types/lib/asserts/generated/index.js +19 -3
  121. package/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
  122. package/node_modules/@babel/types/lib/ast-types/generated/index.js +1 -1
  123. package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
  124. package/node_modules/@babel/types/lib/builders/generated/index.js +22 -2858
  125. package/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
  126. package/node_modules/@babel/types/lib/builders/generated/lowercase.js +2896 -0
  127. package/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
  128. package/node_modules/@babel/types/lib/builders/generated/uppercase.js +267 -1525
  129. package/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
  130. package/node_modules/@babel/types/lib/constants/generated/index.js +2 -1
  131. package/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -1
  132. package/node_modules/@babel/types/lib/constants/index.js +5 -3
  133. package/node_modules/@babel/types/lib/constants/index.js.map +1 -1
  134. package/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
  135. package/node_modules/@babel/types/lib/converters/toExpression.js +1 -0
  136. package/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -1
  137. package/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
  138. package/node_modules/@babel/types/lib/converters/valueToNode.js +16 -3
  139. package/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -1
  140. package/node_modules/@babel/types/lib/definitions/core.js +73 -44
  141. package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
  142. package/node_modules/@babel/types/lib/definitions/experimental.js +3 -11
  143. package/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -1
  144. package/node_modules/@babel/types/lib/definitions/flow.js +6 -3
  145. package/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
  146. package/node_modules/@babel/types/lib/definitions/index.js +13 -0
  147. package/node_modules/@babel/types/lib/definitions/index.js.map +1 -1
  148. package/node_modules/@babel/types/lib/definitions/jsx.js +9 -4
  149. package/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
  150. package/node_modules/@babel/types/lib/definitions/typescript.js +56 -28
  151. package/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
  152. package/node_modules/@babel/types/lib/definitions/utils.js +37 -15
  153. package/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
  154. package/node_modules/@babel/types/lib/index-legacy.d.ts +72 -41
  155. package/node_modules/@babel/types/lib/index.d.ts +1699 -1655
  156. package/node_modules/@babel/types/lib/index.js +10 -21
  157. package/node_modules/@babel/types/lib/index.js.flow +72 -42
  158. package/node_modules/@babel/types/lib/index.js.map +1 -1
  159. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +9 -8
  160. package/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
  161. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +1 -0
  162. package/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
  163. package/node_modules/@babel/types/lib/traverse/traverseFast.js +19 -5
  164. package/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -1
  165. package/node_modules/@babel/types/lib/utils/deprecationWarning.js +3 -3
  166. package/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -1
  167. package/node_modules/@babel/types/lib/validators/generated/index.js +50 -5
  168. package/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
  169. package/node_modules/@babel/types/lib/validators/isLet.js +6 -2
  170. package/node_modules/@babel/types/lib/validators/isLet.js.map +1 -1
  171. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js +1 -5
  172. package/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -1
  173. package/node_modules/@babel/types/lib/validators/isType.js +1 -6
  174. package/node_modules/@babel/types/lib/validators/isType.js.map +1 -1
  175. package/node_modules/@babel/types/lib/validators/isVar.js +8 -4
  176. package/node_modules/@babel/types/lib/validators/isVar.js.map +1 -1
  177. package/node_modules/@babel/types/lib/validators/matchesPattern.js +10 -2
  178. package/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -1
  179. package/node_modules/@babel/types/lib/validators/validate.js.map +1 -1
  180. package/node_modules/@babel/types/package.json +14 -14
  181. package/node_modules/@emotion/cache/dist/declarations/src/index.d.ts +16 -2
  182. package/node_modules/@emotion/cache/dist/declarations/src/types.d.ts +14 -0
  183. package/node_modules/@emotion/cache/dist/emotion-cache.browser.cjs.js +7 -36
  184. package/node_modules/@emotion/cache/dist/emotion-cache.browser.development.cjs.js +10 -43
  185. package/node_modules/@emotion/cache/dist/emotion-cache.browser.development.esm.js +10 -43
  186. package/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +7 -36
  187. package/node_modules/@emotion/cache/dist/emotion-cache.cjs.js +11 -73
  188. package/node_modules/@emotion/cache/dist/emotion-cache.development.cjs.js +15 -81
  189. package/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.cjs.js +50 -60
  190. package/node_modules/@emotion/cache/dist/emotion-cache.development.edge-light.esm.js +51 -61
  191. package/node_modules/@emotion/cache/dist/emotion-cache.development.esm.js +15 -81
  192. package/node_modules/@emotion/cache/dist/emotion-cache.edge-light.cjs.js +28 -56
  193. package/node_modules/@emotion/cache/dist/emotion-cache.edge-light.esm.js +29 -57
  194. package/node_modules/@emotion/cache/dist/emotion-cache.esm.js +11 -73
  195. package/node_modules/@emotion/cache/package.json +11 -11
  196. package/node_modules/@emotion/cache/src/{index.js → index.ts} +39 -55
  197. package/node_modules/@emotion/cache/src/{prefixer.js → prefixer.ts} +11 -4
  198. package/node_modules/@emotion/cache/src/{stylis-plugins.js → stylis-plugins.ts} +91 -83
  199. package/node_modules/@emotion/cache/src/{types.js → types.ts} +4 -5
  200. package/node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.umd.min.js.map +1 -1
  201. package/node_modules/@emotion/react/_isolated-hnrs/package.json +1 -0
  202. package/node_modules/@emotion/react/dist/declarations/src/_isolated-hnrs.d.ts +3 -3
  203. package/node_modules/@emotion/react/dist/declarations/src/class-names.d.ts +18 -0
  204. package/node_modules/@emotion/react/dist/declarations/src/context.d.ts +6 -0
  205. package/node_modules/@emotion/react/dist/declarations/src/css.d.ts +5 -0
  206. package/node_modules/@emotion/react/dist/declarations/src/global.d.ts +7 -0
  207. package/node_modules/@emotion/react/dist/declarations/src/index.d.ts +14 -1
  208. package/node_modules/@emotion/react/dist/declarations/src/jsx-dev-runtime.d.ts +6 -1
  209. package/node_modules/@emotion/react/dist/declarations/src/jsx-namespace.d.ts +64 -0
  210. package/node_modules/@emotion/react/dist/declarations/src/jsx-runtime.d.ts +7 -1
  211. package/node_modules/@emotion/react/dist/declarations/src/jsx.d.ts +22 -0
  212. package/node_modules/@emotion/react/dist/declarations/src/keyframes.d.ts +10 -0
  213. package/node_modules/@emotion/react/dist/declarations/src/theming.d.ts +28 -0
  214. package/node_modules/@emotion/react/dist/declarations/src/types.d.ts +7 -0
  215. package/node_modules/@emotion/react/dist/{emotion-element-f66136f5.development.edge-light.cjs.js → emotion-element-010f37fa.development.edge-light.cjs.js} +23 -84
  216. package/node_modules/@emotion/react/dist/{emotion-element-832b737b.browser.cjs.js → emotion-element-25f9958c.browser.cjs.js} +20 -65
  217. package/node_modules/@emotion/react/dist/{emotion-element-7447be04.browser.development.cjs.js → emotion-element-4787f564.browser.development.cjs.js} +21 -74
  218. package/node_modules/@emotion/react/dist/{emotion-element-7a1343fa.browser.development.esm.js → emotion-element-489459f2.browser.development.esm.js} +21 -74
  219. package/node_modules/@emotion/react/dist/{emotion-element-efb2998a.development.edge-light.esm.js → emotion-element-516430c7.development.edge-light.esm.js} +23 -84
  220. package/node_modules/@emotion/react/dist/{emotion-element-ba80abe0.development.esm.js → emotion-element-782f682d.development.esm.js} +23 -84
  221. package/node_modules/@emotion/react/dist/{emotion-element-657efc1f.edge-light.esm.js → emotion-element-8113875a.edge-light.esm.js} +22 -75
  222. package/node_modules/@emotion/react/dist/{emotion-element-b1930563.cjs.js → emotion-element-a1829a1e.cjs.js} +22 -75
  223. package/node_modules/@emotion/react/dist/{emotion-element-60389d2b.edge-light.cjs.js → emotion-element-af3dc15b.edge-light.cjs.js} +22 -75
  224. package/node_modules/@emotion/react/dist/{emotion-element-b4c8b265.esm.js → emotion-element-d59e098f.esm.js} +22 -75
  225. package/node_modules/@emotion/react/dist/{emotion-element-9150ebbd.development.cjs.js → emotion-element-e8f4cc37.development.cjs.js} +23 -84
  226. package/node_modules/@emotion/react/dist/{emotion-element-5486c51c.browser.esm.js → emotion-element-f0de968e.browser.esm.js} +20 -65
  227. package/node_modules/@emotion/react/dist/emotion-react.browser.cjs.js +19 -75
  228. package/node_modules/@emotion/react/dist/emotion-react.browser.development.cjs.js +38 -102
  229. package/node_modules/@emotion/react/dist/emotion-react.browser.development.esm.js +38 -101
  230. package/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +19 -74
  231. package/node_modules/@emotion/react/dist/emotion-react.cjs.js +19 -75
  232. package/node_modules/@emotion/react/dist/emotion-react.development.cjs.js +38 -102
  233. package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.cjs.js +37 -99
  234. package/node_modules/@emotion/react/dist/emotion-react.development.edge-light.esm.js +37 -98
  235. package/node_modules/@emotion/react/dist/emotion-react.development.esm.js +38 -101
  236. package/node_modules/@emotion/react/dist/emotion-react.edge-light.cjs.js +18 -72
  237. package/node_modules/@emotion/react/dist/emotion-react.edge-light.esm.js +18 -71
  238. package/node_modules/@emotion/react/dist/emotion-react.esm.js +19 -74
  239. package/node_modules/@emotion/react/dist/emotion-react.umd.min.js +1 -1
  240. package/node_modules/@emotion/react/dist/emotion-react.umd.min.js.map +1 -1
  241. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js +3 -3
  242. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js +3 -3
  243. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js +3 -3
  244. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js +3 -3
  245. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js +3 -3
  246. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js +3 -3
  247. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js +3 -3
  248. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js +3 -3
  249. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js +3 -3
  250. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js +3 -3
  251. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js +3 -3
  252. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js +3 -3
  253. package/node_modules/@emotion/react/jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.umd.min.js.map +1 -1
  254. package/node_modules/@emotion/react/jsx-dev-runtime/package.json +1 -1
  255. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js +5 -5
  256. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js +5 -5
  257. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js +5 -5
  258. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js +5 -5
  259. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js +5 -5
  260. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js +5 -5
  261. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js +5 -5
  262. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js +5 -5
  263. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js +5 -5
  264. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js +5 -5
  265. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js +5 -5
  266. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +5 -5
  267. package/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.umd.min.js.map +1 -1
  268. package/node_modules/@emotion/react/jsx-runtime/package.json +1 -1
  269. package/node_modules/@emotion/react/package.json +19 -18
  270. package/node_modules/@emotion/react/src/{_isolated-hnrs.js → _isolated-hnrs.ts} +7 -2
  271. package/node_modules/@emotion/react/src/{class-names.js → class-names.tsx} +43 -32
  272. package/node_modules/@emotion/react/src/{context.js → context.tsx} +25 -22
  273. package/node_modules/@emotion/react/src/css.ts +14 -0
  274. package/node_modules/@emotion/react/src/{emotion-element.js → emotion-element.tsx} +37 -17
  275. package/node_modules/@emotion/react/src/{get-label-from-stack-trace.js → get-label-from-stack-trace.ts} +7 -4
  276. package/node_modules/@emotion/react/src/global.tsx +147 -0
  277. package/node_modules/@emotion/react/src/{index.js → index.ts} +24 -3
  278. package/node_modules/@emotion/react/src/{jsx-dev-runtime.js → jsx-dev-runtime.ts} +12 -2
  279. package/node_modules/@emotion/react/src/jsx-namespace.ts +107 -0
  280. package/node_modules/@emotion/react/src/jsx-runtime.ts +32 -0
  281. package/node_modules/@emotion/react/src/jsx.ts +45 -0
  282. package/node_modules/@emotion/react/src/keyframes.ts +27 -0
  283. package/node_modules/@emotion/react/src/{theming.js → theming.tsx} +40 -18
  284. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.cjs.js +19 -92
  285. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.cjs.js +22 -94
  286. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.development.esm.js +22 -94
  287. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +19 -92
  288. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js +20 -93
  289. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.cjs.js +23 -95
  290. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.cjs.js +22 -94
  291. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.edge-light.esm.js +22 -94
  292. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.development.esm.js +24 -96
  293. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.cjs.js +19 -92
  294. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.edge-light.esm.js +19 -92
  295. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js +21 -94
  296. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js +1 -1
  297. package/node_modules/@emotion/styled/base/dist/emotion-styled-base.umd.min.js.map +1 -1
  298. package/node_modules/@emotion/styled/base/package.json +1 -1
  299. package/node_modules/@emotion/styled/dist/declarations/src/base.d.ts +4 -2
  300. package/node_modules/@emotion/styled/dist/declarations/src/index.d.ts +15 -2
  301. package/node_modules/@emotion/styled/dist/declarations/src/jsx-namespace.d.ts +5 -0
  302. package/node_modules/@emotion/styled/dist/declarations/src/types.d.ts +88 -0
  303. package/node_modules/@emotion/styled/dist/emotion-styled.browser.cjs.js +7 -6
  304. package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.cjs.js +7 -6
  305. package/node_modules/@emotion/styled/dist/emotion-styled.browser.development.esm.js +7 -6
  306. package/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +7 -6
  307. package/node_modules/@emotion/styled/dist/emotion-styled.cjs.js +7 -6
  308. package/node_modules/@emotion/styled/dist/emotion-styled.development.cjs.js +7 -6
  309. package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.cjs.js +7 -6
  310. package/node_modules/@emotion/styled/dist/emotion-styled.development.edge-light.esm.js +7 -6
  311. package/node_modules/@emotion/styled/dist/emotion-styled.development.esm.js +7 -6
  312. package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.cjs.js +7 -6
  313. package/node_modules/@emotion/styled/dist/emotion-styled.edge-light.esm.js +7 -6
  314. package/node_modules/@emotion/styled/dist/emotion-styled.esm.js +7 -6
  315. package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js +1 -1
  316. package/node_modules/@emotion/styled/dist/emotion-styled.umd.min.js.map +1 -1
  317. package/node_modules/@emotion/styled/package.json +13 -14
  318. package/node_modules/@emotion/styled/src/{base.js → base.tsx} +56 -42
  319. package/node_modules/@emotion/styled/{types/index.d.ts → src/index.ts} +21 -12
  320. package/node_modules/@emotion/styled/{dist/declarations/types/jsx-namespace.d.ts → src/jsx-namespace.ts} +3 -5
  321. package/node_modules/@emotion/styled/src/{tags.js → tags.ts} +1 -1
  322. package/node_modules/@emotion/styled/{types/base.d.ts → src/types.ts} +8 -15
  323. package/node_modules/@emotion/styled/src/utils.ts +38 -0
  324. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/declarations/src/index.d.ts +3 -0
  325. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.d.mts +2 -0
  326. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.d.ts +2 -0
  327. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json +7 -6
  328. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.ts +21 -0
  329. package/node_modules/@jridgewell/gen-mapping/LICENSE +1 -1
  330. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +256 -194
  331. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +6 -1
  332. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +339 -239
  333. package/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +6 -1
  334. package/node_modules/@jridgewell/gen-mapping/package.json +46 -51
  335. package/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts +614 -0
  336. package/node_modules/@jridgewell/gen-mapping/src/set-array.ts +82 -0
  337. package/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts +16 -0
  338. package/node_modules/@jridgewell/gen-mapping/src/types.ts +61 -0
  339. package/node_modules/@jridgewell/gen-mapping/{dist/types/gen-mapping.d.ts → types/gen-mapping.d.cts} +3 -2
  340. package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map +1 -0
  341. package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
  342. package/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map +1 -0
  343. package/node_modules/@jridgewell/{set-array/dist/types/set-array.d.ts → gen-mapping/types/set-array.d.cts} +2 -1
  344. package/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map +1 -0
  345. package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
  346. package/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map +1 -0
  347. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts +13 -0
  348. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map +1 -0
  349. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
  350. package/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map +1 -0
  351. package/node_modules/@jridgewell/gen-mapping/{dist/types/types.d.ts → types/types.d.cts} +10 -2
  352. package/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map +1 -0
  353. package/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
  354. package/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map +1 -0
  355. package/node_modules/@jridgewell/trace-mapping/LICENSE +1 -1
  356. package/node_modules/@jridgewell/trace-mapping/README.md +160 -69
  357. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +417 -493
  358. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +6 -1
  359. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +546 -588
  360. package/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +6 -1
  361. package/node_modules/@jridgewell/trace-mapping/package.json +43 -49
  362. package/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
  363. package/node_modules/@jridgewell/trace-mapping/src/by-source.ts +65 -0
  364. package/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +192 -0
  365. package/node_modules/@jridgewell/trace-mapping/src/resolve.ts +16 -0
  366. package/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
  367. package/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
  368. package/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
  369. package/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +504 -0
  370. package/node_modules/@jridgewell/trace-mapping/src/types.ts +114 -0
  371. package/node_modules/@jridgewell/trace-mapping/{dist/types/binary-search.d.ts → types/binary-search.d.cts} +2 -1
  372. package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +1 -0
  373. package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
  374. package/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +1 -0
  375. package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +8 -0
  376. package/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +1 -0
  377. package/node_modules/@jridgewell/trace-mapping/{dist/types/by-source.d.ts → types/by-source.d.mts} +3 -2
  378. package/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +1 -0
  379. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +9 -0
  380. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +1 -0
  381. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
  382. package/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +1 -0
  383. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +4 -0
  384. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +1 -0
  385. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
  386. package/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +1 -0
  387. package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +3 -0
  388. package/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +1 -0
  389. package/node_modules/@jridgewell/trace-mapping/{dist/types/sort.d.ts → types/sort.d.mts} +2 -1
  390. package/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +1 -0
  391. package/node_modules/@jridgewell/trace-mapping/{dist/types/sourcemap-segment.d.ts → types/sourcemap-segment.d.cts} +1 -0
  392. package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +1 -0
  393. package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
  394. package/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +1 -0
  395. package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +5 -0
  396. package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +1 -0
  397. package/node_modules/@jridgewell/trace-mapping/{dist/types/strip-filename.d.ts → types/strip-filename.d.mts} +1 -0
  398. package/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +1 -0
  399. package/node_modules/@jridgewell/trace-mapping/{dist/types/trace-mapping.d.ts → types/trace-mapping.d.cts} +7 -6
  400. package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +1 -0
  401. package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
  402. package/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +1 -0
  403. package/node_modules/@jridgewell/trace-mapping/{dist/types/types.d.ts → types/types.d.cts} +10 -2
  404. package/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +1 -0
  405. package/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
  406. package/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +1 -0
  407. package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
  408. package/node_modules/@mui/material/Accordion/Accordion.d.ts +32 -15
  409. package/node_modules/@mui/material/Accordion/Accordion.js +18 -6
  410. package/node_modules/@mui/material/AccordionActions/AccordionActions.d.ts +2 -2
  411. package/node_modules/@mui/material/AccordionDetails/AccordionDetails.d.ts +2 -2
  412. package/node_modules/@mui/material/AccordionSummary/AccordionSummary.d.ts +62 -7
  413. package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +67 -16
  414. package/node_modules/@mui/material/Alert/Alert.d.ts +6 -18
  415. package/node_modules/@mui/material/AlertTitle/AlertTitle.d.ts +3 -3
  416. package/node_modules/@mui/material/AppBar/AppBar.d.ts +4 -4
  417. package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +2 -2
  418. package/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
  419. package/node_modules/@mui/material/Avatar/Avatar.d.ts +2 -2
  420. package/node_modules/@mui/material/AvatarGroup/AvatarGroup.d.ts +2 -2
  421. package/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +10 -2
  422. package/node_modules/@mui/material/Backdrop/Backdrop.d.ts +17 -15
  423. package/node_modules/@mui/material/Badge/Badge.d.ts +35 -31
  424. package/node_modules/@mui/material/Badge/Badge.js +27 -20
  425. package/node_modules/@mui/material/BottomNavigation/BottomNavigation.d.ts +2 -2
  426. package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.d.ts +43 -6
  427. package/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +53 -9
  428. package/node_modules/@mui/material/Box/Box.d.ts +2 -2
  429. package/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
  430. package/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  431. package/node_modules/@mui/material/Button/Button.d.ts +4 -4
  432. package/node_modules/@mui/material/Button/Button.js +3 -3
  433. package/node_modules/@mui/material/ButtonBase/ButtonBase.d.ts +2 -2
  434. package/node_modules/@mui/material/ButtonGroup/ButtonGroup.d.ts +2 -2
  435. package/node_modules/@mui/material/CHANGELOG.md +345 -0
  436. package/node_modules/@mui/material/Card/Card.d.ts +4 -4
  437. package/node_modules/@mui/material/CardActionArea/CardActionArea.d.ts +43 -6
  438. package/node_modules/@mui/material/CardActionArea/CardActionArea.js +47 -8
  439. package/node_modules/@mui/material/CardActions/CardActions.d.ts +2 -2
  440. package/node_modules/@mui/material/CardContent/CardContent.d.ts +2 -2
  441. package/node_modules/@mui/material/CardHeader/CardHeader.d.ts +6 -22
  442. package/node_modules/@mui/material/CardMedia/CardMedia.d.ts +2 -2
  443. package/node_modules/@mui/material/Checkbox/Checkbox.d.ts +49 -13
  444. package/node_modules/@mui/material/Checkbox/Checkbox.js +51 -21
  445. package/node_modules/@mui/material/Chip/Chip.d.ts +2 -2
  446. package/node_modules/@mui/material/CircularProgress/CircularProgress.d.ts +7 -3
  447. package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.d.ts +3 -3
  448. package/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +3 -3
  449. package/node_modules/@mui/material/Collapse/Collapse.d.ts +5 -5
  450. package/node_modules/@mui/material/Container/Container.d.ts +2 -2
  451. package/node_modules/@mui/material/CssBaseline/CssBaseline.d.ts +2 -2
  452. package/node_modules/@mui/material/Dialog/Dialog.d.ts +7 -7
  453. package/node_modules/@mui/material/Dialog/dialogClasses.d.ts +6 -2
  454. package/node_modules/@mui/material/DialogActions/DialogActions.d.ts +2 -2
  455. package/node_modules/@mui/material/DialogContent/DialogContent.d.ts +2 -2
  456. package/node_modules/@mui/material/DialogContentText/DialogContentText.d.ts +3 -3
  457. package/node_modules/@mui/material/DialogTitle/DialogTitle.d.ts +3 -3
  458. package/node_modules/@mui/material/Divider/Divider.d.ts +3 -3
  459. package/node_modules/@mui/material/Drawer/Drawer.d.ts +95 -4
  460. package/node_modules/@mui/material/Drawer/Drawer.js +108 -36
  461. package/node_modules/@mui/material/Fab/Fab.d.ts +3 -3
  462. package/node_modules/@mui/material/Fade/Fade.d.ts +3 -3
  463. package/node_modules/@mui/material/FilledInput/FilledInput.d.ts +3 -3
  464. package/node_modules/@mui/material/FormControl/FormControl.d.ts +6 -6
  465. package/node_modules/@mui/material/FormControlLabel/FormControlLabel.d.ts +4 -4
  466. package/node_modules/@mui/material/FormGroup/FormGroup.d.ts +3 -3
  467. package/node_modules/@mui/material/FormHelperText/FormHelperText.d.ts +2 -2
  468. package/node_modules/@mui/material/FormLabel/FormLabel.d.ts +4 -4
  469. package/node_modules/@mui/material/GlobalStyles/GlobalStyles.d.ts +2 -2
  470. package/node_modules/@mui/material/Grid/Grid.d.ts +2 -2
  471. package/node_modules/@mui/material/Grid2/Grid2.d.ts +2 -2
  472. package/node_modules/@mui/material/Grid2/Grid2.js +2 -2
  473. package/node_modules/@mui/material/Grow/Grow.d.ts +5 -5
  474. package/node_modules/@mui/material/Hidden/Hidden.d.ts +2 -2
  475. package/node_modules/@mui/material/Icon/Icon.d.ts +3 -3
  476. package/node_modules/@mui/material/IconButton/IconButton.d.ts +4 -4
  477. package/node_modules/@mui/material/IconButton/IconButton.js +3 -3
  478. package/node_modules/@mui/material/ImageList/ImageList.d.ts +2 -2
  479. package/node_modules/@mui/material/ImageListItem/ImageListItem.d.ts +2 -2
  480. package/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  481. package/node_modules/@mui/material/Input/Input.d.ts +3 -3
  482. package/node_modules/@mui/material/InputAdornment/InputAdornment.d.ts +2 -2
  483. package/node_modules/@mui/material/InputBase/InputBase.d.ts +2 -2
  484. package/node_modules/@mui/material/InputBase/inputBaseClasses.d.ts +15 -6
  485. package/node_modules/@mui/material/InputLabel/InputLabel.d.ts +3 -3
  486. package/node_modules/@mui/material/LinearProgress/LinearProgress.d.ts +7 -3
  487. package/node_modules/@mui/material/Link/Link.d.ts +4 -4
  488. package/node_modules/@mui/material/List/List.d.ts +3 -3
  489. package/node_modules/@mui/material/ListItem/ListItem.d.ts +3 -3
  490. package/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  491. package/node_modules/@mui/material/ListItemButton/ListItemButton.d.ts +3 -3
  492. package/node_modules/@mui/material/ListItemIcon/ListItemIcon.d.ts +2 -2
  493. package/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  494. package/node_modules/@mui/material/ListItemText/ListItemText.d.ts +12 -2
  495. package/node_modules/@mui/material/ListItemText/ListItemText.js +14 -5
  496. package/node_modules/@mui/material/ListSubheader/ListSubheader.d.ts +2 -2
  497. package/node_modules/@mui/material/Menu/Menu.d.ts +92 -5
  498. package/node_modules/@mui/material/Menu/Menu.js +58 -19
  499. package/node_modules/@mui/material/MenuItem/MenuItem.d.ts +3 -3
  500. package/node_modules/@mui/material/MenuList/MenuList.d.ts +4 -4
  501. package/node_modules/@mui/material/MobileStepper/MobileStepper.d.ts +72 -4
  502. package/node_modules/@mui/material/MobileStepper/MobileStepper.js +76 -18
  503. package/node_modules/@mui/material/Modal/Modal.d.ts +7 -7
  504. package/node_modules/@mui/material/Modal/Modal.js +9 -10
  505. package/node_modules/@mui/material/NativeSelect/NativeSelect.d.ts +3 -3
  506. package/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +6 -2
  507. package/node_modules/@mui/material/NoSsr/NoSsr.d.ts +2 -2
  508. package/node_modules/@mui/material/NoSsr/NoSsr.js +2 -2
  509. package/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +2 -0
  510. package/node_modules/@mui/material/OutlinedInput/OutlinedInput.d.ts +32 -5
  511. package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +30 -10
  512. package/node_modules/@mui/material/OverridableComponent/index.d.ts +41 -0
  513. package/node_modules/@mui/material/OverridableComponent/index.js +1 -0
  514. package/node_modules/@mui/material/OverridableComponent/package.json +6 -0
  515. package/node_modules/@mui/material/Pagination/Pagination.d.ts +2 -2
  516. package/node_modules/@mui/material/PaginationItem/PaginationItem.d.ts +3 -3
  517. package/node_modules/@mui/material/Paper/Paper.d.ts +3 -3
  518. package/node_modules/@mui/material/PigmentContainer/PigmentContainer.d.ts +2 -2
  519. package/node_modules/@mui/material/PigmentContainer/PigmentContainer.js +2 -2
  520. package/node_modules/@mui/material/PigmentGrid/PigmentGrid.d.ts +2 -2
  521. package/node_modules/@mui/material/PigmentGrid/PigmentGrid.js +2 -2
  522. package/node_modules/@mui/material/PigmentHidden/PigmentHidden.d.ts +2 -2
  523. package/node_modules/@mui/material/PigmentHidden/PigmentHidden.js +2 -2
  524. package/node_modules/@mui/material/PigmentStack/PigmentStack.d.ts +2 -2
  525. package/node_modules/@mui/material/PigmentStack/PigmentStack.js +2 -2
  526. package/node_modules/@mui/material/Popover/Popover.d.ts +65 -12
  527. package/node_modules/@mui/material/Popover/Popover.js +79 -52
  528. package/node_modules/@mui/material/Popper/Popper.d.ts +4 -4
  529. package/node_modules/@mui/material/Popper/Popper.js +4 -4
  530. package/node_modules/@mui/material/Portal/Portal.d.ts +2 -2
  531. package/node_modules/@mui/material/Portal/Portal.js +2 -2
  532. package/node_modules/@mui/material/README.md +4 -2
  533. package/node_modules/@mui/material/Radio/Radio.d.ts +48 -4
  534. package/node_modules/@mui/material/Radio/Radio.js +61 -16
  535. package/node_modules/@mui/material/Radio/RadioButtonIcon.js +7 -2
  536. package/node_modules/@mui/material/RadioGroup/RadioGroup.d.ts +3 -3
  537. package/node_modules/@mui/material/Rating/Rating.d.ts +61 -3
  538. package/node_modules/@mui/material/Rating/Rating.js +131 -45
  539. package/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  540. package/node_modules/@mui/material/Select/Select.d.ts +3 -3
  541. package/node_modules/@mui/material/Select/SelectInput.js +8 -8
  542. package/node_modules/@mui/material/Skeleton/Skeleton.d.ts +2 -2
  543. package/node_modules/@mui/material/Slide/Slide.d.ts +4 -4
  544. package/node_modules/@mui/material/Slider/Slider.d.ts +2 -2
  545. package/node_modules/@mui/material/Slider/sliderClasses.d.ts +21 -7
  546. package/node_modules/@mui/material/Slider/useSlider.js +2 -2
  547. package/node_modules/@mui/material/Snackbar/Snackbar.d.ts +81 -4
  548. package/node_modules/@mui/material/Snackbar/Snackbar.js +116 -32
  549. package/node_modules/@mui/material/SnackbarContent/SnackbarContent.d.ts +3 -3
  550. package/node_modules/@mui/material/SpeedDial/SpeedDial.d.ts +20 -8
  551. package/node_modules/@mui/material/SpeedDial/SpeedDial.js +40 -11
  552. package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.d.ts +85 -4
  553. package/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +109 -31
  554. package/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  555. package/node_modules/@mui/material/Stack/Stack.d.ts +2 -2
  556. package/node_modules/@mui/material/Step/Step.d.ts +2 -2
  557. package/node_modules/@mui/material/StepButton/StepButton.d.ts +3 -3
  558. package/node_modules/@mui/material/StepConnector/StepConnector.d.ts +2 -2
  559. package/node_modules/@mui/material/StepContent/StepContent.d.ts +4 -4
  560. package/node_modules/@mui/material/StepIcon/StepIcon.d.ts +3 -3
  561. package/node_modules/@mui/material/StepLabel/StepLabel.d.ts +21 -3
  562. package/node_modules/@mui/material/StepLabel/StepLabel.js +14 -5
  563. package/node_modules/@mui/material/Stepper/Stepper.d.ts +2 -2
  564. package/node_modules/@mui/material/SvgIcon/SvgIcon.d.ts +3 -3
  565. package/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -0
  566. package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.d.ts +31 -5
  567. package/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +60 -13
  568. package/node_modules/@mui/material/Switch/Switch.d.ts +78 -5
  569. package/node_modules/@mui/material/Switch/Switch.js +73 -9
  570. package/node_modules/@mui/material/Tab/Tab.d.ts +3 -3
  571. package/node_modules/@mui/material/TabScrollButton/TabScrollButton.d.ts +2 -2
  572. package/node_modules/@mui/material/Table/Table.d.ts +2 -2
  573. package/node_modules/@mui/material/TableBody/TableBody.d.ts +2 -2
  574. package/node_modules/@mui/material/TableCell/TableCell.d.ts +2 -2
  575. package/node_modules/@mui/material/TableContainer/TableContainer.d.ts +2 -2
  576. package/node_modules/@mui/material/TableFooter/TableFooter.d.ts +2 -2
  577. package/node_modules/@mui/material/TableHead/TableHead.d.ts +2 -2
  578. package/node_modules/@mui/material/TablePagination/TablePagination.d.ts +4 -4
  579. package/node_modules/@mui/material/TableRow/TableRow.d.ts +2 -2
  580. package/node_modules/@mui/material/TableSortLabel/TableSortLabel.d.ts +3 -3
  581. package/node_modules/@mui/material/Tabs/Tabs.d.ts +131 -31
  582. package/node_modules/@mui/material/Tabs/Tabs.js +124 -52
  583. package/node_modules/@mui/material/Tabs/tabsClasses.d.ts +4 -0
  584. package/node_modules/@mui/material/Tabs/tabsClasses.js +1 -1
  585. package/node_modules/@mui/material/TextField/TextField.d.ts +40 -10
  586. package/node_modules/@mui/material/TextField/TextField.js +22 -11
  587. package/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.d.ts +2 -2
  588. package/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +68 -47
  589. package/node_modules/@mui/material/ToggleButton/ToggleButton.d.ts +3 -3
  590. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  591. package/node_modules/@mui/material/Toolbar/Toolbar.d.ts +2 -2
  592. package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +23 -27
  593. package/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  594. package/node_modules/@mui/material/Typography/Typography.d.ts +3 -3
  595. package/node_modules/@mui/material/Zoom/Zoom.d.ts +3 -3
  596. package/node_modules/@mui/material/index.js +1 -1
  597. package/node_modules/@mui/material/internal/SwitchBase.d.ts +35 -1
  598. package/node_modules/@mui/material/internal/SwitchBase.js +88 -31
  599. package/node_modules/@mui/material/modern/Accordion/Accordion.js +18 -6
  600. package/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js +67 -16
  601. package/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js +1 -1
  602. package/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js +10 -2
  603. package/node_modules/@mui/material/modern/Badge/Badge.js +27 -20
  604. package/node_modules/@mui/material/modern/BottomNavigationAction/BottomNavigationAction.js +53 -9
  605. package/node_modules/@mui/material/modern/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
  606. package/node_modules/@mui/material/modern/Button/Button.js +3 -3
  607. package/node_modules/@mui/material/modern/CardActionArea/CardActionArea.js +47 -8
  608. package/node_modules/@mui/material/modern/Checkbox/Checkbox.js +51 -21
  609. package/node_modules/@mui/material/modern/ClickAwayListener/ClickAwayListener.js +3 -3
  610. package/node_modules/@mui/material/modern/Drawer/Drawer.js +108 -36
  611. package/node_modules/@mui/material/modern/Grid2/Grid2.js +2 -2
  612. package/node_modules/@mui/material/modern/IconButton/IconButton.js +3 -3
  613. package/node_modules/@mui/material/modern/ListItemText/ListItemText.js +14 -5
  614. package/node_modules/@mui/material/modern/Menu/Menu.js +58 -19
  615. package/node_modules/@mui/material/modern/MobileStepper/MobileStepper.js +76 -18
  616. package/node_modules/@mui/material/modern/Modal/Modal.js +9 -10
  617. package/node_modules/@mui/material/modern/NativeSelect/NativeSelectInput.js +6 -2
  618. package/node_modules/@mui/material/modern/NoSsr/NoSsr.js +2 -2
  619. package/node_modules/@mui/material/modern/OutlinedInput/NotchedOutline.js +2 -0
  620. package/node_modules/@mui/material/modern/OutlinedInput/OutlinedInput.js +30 -10
  621. package/node_modules/@mui/material/modern/OverridableComponent/index.js +1 -0
  622. package/node_modules/@mui/material/modern/PigmentContainer/PigmentContainer.js +2 -2
  623. package/node_modules/@mui/material/modern/PigmentGrid/PigmentGrid.js +2 -2
  624. package/node_modules/@mui/material/modern/PigmentHidden/PigmentHidden.js +2 -2
  625. package/node_modules/@mui/material/modern/PigmentStack/PigmentStack.js +2 -2
  626. package/node_modules/@mui/material/modern/Popover/Popover.js +79 -52
  627. package/node_modules/@mui/material/modern/Popper/Popper.js +4 -4
  628. package/node_modules/@mui/material/modern/Portal/Portal.js +2 -2
  629. package/node_modules/@mui/material/modern/Radio/Radio.js +61 -16
  630. package/node_modules/@mui/material/modern/Radio/RadioButtonIcon.js +7 -2
  631. package/node_modules/@mui/material/modern/Rating/Rating.js +131 -45
  632. package/node_modules/@mui/material/modern/Select/SelectInput.js +8 -8
  633. package/node_modules/@mui/material/modern/Slider/useSlider.js +2 -2
  634. package/node_modules/@mui/material/modern/Snackbar/Snackbar.js +116 -32
  635. package/node_modules/@mui/material/modern/SpeedDial/SpeedDial.js +40 -11
  636. package/node_modules/@mui/material/modern/SpeedDialAction/SpeedDialAction.js +109 -31
  637. package/node_modules/@mui/material/modern/StepLabel/StepLabel.js +14 -5
  638. package/node_modules/@mui/material/modern/SwipeableDrawer/SwipeArea.js +1 -0
  639. package/node_modules/@mui/material/modern/SwipeableDrawer/SwipeableDrawer.js +60 -13
  640. package/node_modules/@mui/material/modern/Switch/Switch.js +73 -9
  641. package/node_modules/@mui/material/modern/Tabs/Tabs.js +124 -52
  642. package/node_modules/@mui/material/modern/Tabs/tabsClasses.js +1 -1
  643. package/node_modules/@mui/material/modern/TextField/TextField.js +22 -11
  644. package/node_modules/@mui/material/modern/TextareaAutosize/TextareaAutosize.js +68 -47
  645. package/node_modules/@mui/material/modern/Tooltip/Tooltip.js +1 -1
  646. package/node_modules/@mui/material/modern/index.js +1 -1
  647. package/node_modules/@mui/material/modern/internal/SwitchBase.js +88 -31
  648. package/node_modules/@mui/material/modern/styles/ThemeProvider.js +20 -9
  649. package/node_modules/@mui/material/modern/styles/components.js +1 -0
  650. package/node_modules/@mui/material/modern/styles/createThemeNoVars.js +5 -2
  651. package/node_modules/@mui/material/modern/styles/overrides.js +1 -0
  652. package/node_modules/@mui/material/modern/styles/props.js +1 -0
  653. package/node_modules/@mui/material/modern/styles/shouldSkipGeneratingVar.js +1 -1
  654. package/node_modules/@mui/material/modern/styles/variants.js +1 -0
  655. package/node_modules/@mui/material/modern/useAutocomplete/useAutocomplete.js +16 -14
  656. package/node_modules/@mui/material/modern/useScrollTrigger/useScrollTrigger.js +3 -0
  657. package/node_modules/@mui/material/modern/utils/mergeSlotProps.js +10 -3
  658. package/node_modules/@mui/material/modern/version/index.js +3 -3
  659. package/node_modules/@mui/material/node/Accordion/Accordion.js +18 -6
  660. package/node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js +67 -16
  661. package/node_modules/@mui/material/node/Autocomplete/Autocomplete.js +1 -1
  662. package/node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js +10 -2
  663. package/node_modules/@mui/material/node/Badge/Badge.js +27 -20
  664. package/node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js +53 -9
  665. package/node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
  666. package/node_modules/@mui/material/node/Button/Button.js +3 -3
  667. package/node_modules/@mui/material/node/CardActionArea/CardActionArea.js +47 -8
  668. package/node_modules/@mui/material/node/Checkbox/Checkbox.js +51 -21
  669. package/node_modules/@mui/material/node/ClickAwayListener/ClickAwayListener.js +3 -3
  670. package/node_modules/@mui/material/node/Drawer/Drawer.js +108 -36
  671. package/node_modules/@mui/material/node/Grid2/Grid2.js +2 -2
  672. package/node_modules/@mui/material/node/IconButton/IconButton.js +3 -3
  673. package/node_modules/@mui/material/node/ListItemText/ListItemText.js +14 -5
  674. package/node_modules/@mui/material/node/Menu/Menu.js +58 -19
  675. package/node_modules/@mui/material/node/MobileStepper/MobileStepper.js +76 -18
  676. package/node_modules/@mui/material/node/Modal/Modal.js +9 -10
  677. package/node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js +6 -2
  678. package/node_modules/@mui/material/node/NoSsr/NoSsr.js +2 -2
  679. package/node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js +2 -0
  680. package/node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js +30 -10
  681. package/node_modules/@mui/material/node/OverridableComponent/index.js +5 -0
  682. package/node_modules/@mui/material/node/PigmentContainer/PigmentContainer.js +2 -2
  683. package/node_modules/@mui/material/node/PigmentGrid/PigmentGrid.js +2 -2
  684. package/node_modules/@mui/material/node/PigmentHidden/PigmentHidden.js +2 -2
  685. package/node_modules/@mui/material/node/PigmentStack/PigmentStack.js +2 -2
  686. package/node_modules/@mui/material/node/Popover/Popover.js +79 -52
  687. package/node_modules/@mui/material/node/Popper/Popper.js +4 -4
  688. package/node_modules/@mui/material/node/Portal/Portal.js +2 -2
  689. package/node_modules/@mui/material/node/Radio/Radio.js +61 -16
  690. package/node_modules/@mui/material/node/Radio/RadioButtonIcon.js +7 -2
  691. package/node_modules/@mui/material/node/Rating/Rating.js +132 -46
  692. package/node_modules/@mui/material/node/Select/SelectInput.js +8 -8
  693. package/node_modules/@mui/material/node/Slider/useSlider.js +2 -2
  694. package/node_modules/@mui/material/node/Snackbar/Snackbar.js +116 -32
  695. package/node_modules/@mui/material/node/SpeedDial/SpeedDial.js +40 -11
  696. package/node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js +109 -31
  697. package/node_modules/@mui/material/node/StepLabel/StepLabel.js +14 -5
  698. package/node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js +1 -0
  699. package/node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js +60 -13
  700. package/node_modules/@mui/material/node/Switch/Switch.js +73 -9
  701. package/node_modules/@mui/material/node/Tabs/Tabs.js +124 -52
  702. package/node_modules/@mui/material/node/Tabs/tabsClasses.js +1 -1
  703. package/node_modules/@mui/material/node/TextField/TextField.js +22 -11
  704. package/node_modules/@mui/material/node/TextareaAutosize/TextareaAutosize.js +67 -46
  705. package/node_modules/@mui/material/node/Tooltip/Tooltip.js +1 -1
  706. package/node_modules/@mui/material/node/index.js +1 -1
  707. package/node_modules/@mui/material/node/internal/SwitchBase.js +88 -31
  708. package/node_modules/@mui/material/node/styles/ThemeProvider.js +20 -9
  709. package/node_modules/@mui/material/node/styles/components.js +5 -0
  710. package/node_modules/@mui/material/node/styles/createThemeNoVars.js +5 -2
  711. package/node_modules/@mui/material/node/styles/overrides.js +5 -0
  712. package/node_modules/@mui/material/node/styles/props.js +5 -0
  713. package/node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js +1 -1
  714. package/node_modules/@mui/material/node/styles/variants.js +5 -0
  715. package/node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js +16 -14
  716. package/node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js +3 -0
  717. package/node_modules/@mui/material/node/utils/mergeSlotProps.js +10 -3
  718. package/node_modules/@mui/material/node/version/index.js +3 -3
  719. package/node_modules/@mui/material/package.json +6 -6
  720. package/node_modules/@mui/material/styles/ThemeProvider.d.ts +6 -0
  721. package/node_modules/@mui/material/styles/ThemeProvider.js +20 -9
  722. package/node_modules/@mui/material/styles/ThemeProviderWithVars.d.ts +1 -0
  723. package/node_modules/@mui/material/styles/components.d.ts +590 -591
  724. package/node_modules/@mui/material/styles/components.js +1 -0
  725. package/node_modules/@mui/material/styles/createThemeNoVars.d.ts +2 -1
  726. package/node_modules/@mui/material/styles/createThemeNoVars.js +5 -2
  727. package/node_modules/@mui/material/styles/index.d.ts +1 -0
  728. package/node_modules/@mui/material/styles/overrides.d.ts +123 -142
  729. package/node_modules/@mui/material/styles/overrides.js +1 -0
  730. package/node_modules/@mui/material/styles/props.d.ts +120 -122
  731. package/node_modules/@mui/material/styles/props.js +1 -0
  732. package/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
  733. package/node_modules/@mui/material/styles/variants.d.ts +7 -10
  734. package/node_modules/@mui/material/styles/variants.js +1 -0
  735. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +2 -2
  736. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +16 -14
  737. package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.d.ts +1 -1
  738. package/node_modules/@mui/material/useScrollTrigger/useScrollTrigger.js +3 -0
  739. package/node_modules/@mui/material/utils/mergeSlotProps.js +10 -3
  740. package/node_modules/@mui/material/version/index.js +3 -3
  741. package/node_modules/@mui/private-theming/CHANGELOG.md +256 -0
  742. package/node_modules/@mui/private-theming/index.js +1 -1
  743. package/node_modules/@mui/private-theming/modern/index.js +1 -1
  744. package/node_modules/@mui/private-theming/node/index.js +1 -1
  745. package/node_modules/@mui/private-theming/package.json +2 -2
  746. package/node_modules/@mui/styled-engine/CHANGELOG.md +387 -0
  747. package/node_modules/@mui/styled-engine/README.md +2 -2
  748. package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.d.ts +1 -0
  749. package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +72 -18
  750. package/node_modules/@mui/styled-engine/index.js +1 -1
  751. package/node_modules/@mui/styled-engine/modern/StyledEngineProvider/StyledEngineProvider.js +72 -18
  752. package/node_modules/@mui/styled-engine/modern/index.js +1 -1
  753. package/node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js +72 -17
  754. package/node_modules/@mui/styled-engine/node/index.js +1 -1
  755. package/node_modules/@mui/styled-engine/package.json +1 -1
  756. package/node_modules/@mui/system/CHANGELOG.md +345 -0
  757. package/node_modules/@mui/system/GlobalStyles/GlobalStyles.js +25 -1
  758. package/node_modules/@mui/system/Grid/createGrid.js +4 -0
  759. package/node_modules/@mui/system/Grid/deleteLegacyGridProps.d.ts +11 -0
  760. package/node_modules/@mui/system/Grid/deleteLegacyGridProps.js +47 -0
  761. package/node_modules/@mui/system/README.md +6 -4
  762. package/node_modules/@mui/system/ThemeProvider/ThemeProvider.js +4 -2
  763. package/node_modules/@mui/system/ThemeProvider/useLayerOrder.d.ts +8 -0
  764. package/node_modules/@mui/system/ThemeProvider/useLayerOrder.js +58 -0
  765. package/node_modules/@mui/system/createBreakpoints/createBreakpoints.d.ts +5 -5
  766. package/node_modules/@mui/system/createStyled/createStyled.js +34 -21
  767. package/node_modules/@mui/system/cssContainerQueries/cssContainerQueries.d.ts +1 -2
  768. package/node_modules/@mui/system/cssVars/createCssVarsProvider.d.ts +6 -0
  769. package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +7 -0
  770. package/node_modules/@mui/system/cssVars/index.d.ts +1 -0
  771. package/node_modules/@mui/system/cssVars/localStorageManager.d.ts +34 -0
  772. package/node_modules/@mui/system/cssVars/localStorageManager.js +57 -0
  773. package/node_modules/@mui/system/cssVars/useCurrentColorScheme.d.ts +2 -0
  774. package/node_modules/@mui/system/cssVars/useCurrentColorScheme.js +50 -69
  775. package/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +26 -2
  776. package/node_modules/@mui/system/esm/Grid/createGrid.js +4 -0
  777. package/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js +41 -0
  778. package/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +5 -3
  779. package/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +52 -0
  780. package/node_modules/@mui/system/esm/createStyled/createStyled.js +35 -22
  781. package/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +7 -0
  782. package/node_modules/@mui/system/esm/cssVars/localStorageManager.js +51 -0
  783. package/node_modules/@mui/system/esm/cssVars/useCurrentColorScheme.js +49 -69
  784. package/node_modules/@mui/system/esm/styleFunctionSx/AliasesCSSProperties.js +1 -0
  785. package/node_modules/@mui/system/esm/styleFunctionSx/OverwriteCSSProperties.js +1 -0
  786. package/node_modules/@mui/system/esm/styleFunctionSx/StandardCssProperties.js +1 -0
  787. package/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +9 -2
  788. package/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js +3 -0
  789. package/node_modules/@mui/system/esm/version/index.js +3 -3
  790. package/node_modules/@mui/system/index.js +1 -1
  791. package/node_modules/@mui/system/modern/GlobalStyles/GlobalStyles.js +26 -2
  792. package/node_modules/@mui/system/modern/Grid/createGrid.js +4 -0
  793. package/node_modules/@mui/system/modern/Grid/deleteLegacyGridProps.js +41 -0
  794. package/node_modules/@mui/system/modern/ThemeProvider/ThemeProvider.js +5 -3
  795. package/node_modules/@mui/system/modern/ThemeProvider/useLayerOrder.js +52 -0
  796. package/node_modules/@mui/system/modern/createStyled/createStyled.js +35 -22
  797. package/node_modules/@mui/system/modern/cssVars/createCssVarsProvider.js +7 -0
  798. package/node_modules/@mui/system/modern/cssVars/localStorageManager.js +51 -0
  799. package/node_modules/@mui/system/modern/cssVars/useCurrentColorScheme.js +49 -69
  800. package/node_modules/@mui/system/modern/index.js +1 -1
  801. package/node_modules/@mui/system/modern/styleFunctionSx/AliasesCSSProperties.js +1 -0
  802. package/node_modules/@mui/system/modern/styleFunctionSx/OverwriteCSSProperties.js +1 -0
  803. package/node_modules/@mui/system/modern/styleFunctionSx/StandardCssProperties.js +1 -0
  804. package/node_modules/@mui/system/modern/styleFunctionSx/styleFunctionSx.js +9 -2
  805. package/node_modules/@mui/system/modern/useMediaQuery/useMediaQuery.js +3 -0
  806. package/node_modules/@mui/system/modern/version/index.js +3 -3
  807. package/node_modules/@mui/system/package.json +5 -5
  808. package/node_modules/@mui/system/styleFunctionSx/AliasesCSSProperties.d.ts +266 -267
  809. package/node_modules/@mui/system/styleFunctionSx/AliasesCSSProperties.js +5 -0
  810. package/node_modules/@mui/system/styleFunctionSx/OverwriteCSSProperties.d.ts +51 -52
  811. package/node_modules/@mui/system/styleFunctionSx/OverwriteCSSProperties.js +5 -0
  812. package/node_modules/@mui/system/styleFunctionSx/StandardCssProperties.d.ts +0 -1
  813. package/node_modules/@mui/system/styleFunctionSx/StandardCssProperties.js +5 -0
  814. package/node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js +9 -2
  815. package/node_modules/@mui/system/useMediaQuery/useMediaQuery.js +3 -0
  816. package/node_modules/@mui/system/version/index.js +3 -3
  817. package/node_modules/@mui/types/package.json +1 -1
  818. package/node_modules/@mui/utils/CHANGELOG.md +256 -0
  819. package/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +32 -12
  820. package/node_modules/@mui/utils/index.js +1 -1
  821. package/node_modules/@mui/utils/modern/index.js +1 -1
  822. package/node_modules/@mui/utils/modern/useForkRef/useForkRef.js +32 -12
  823. package/node_modules/@mui/utils/package.json +3 -3
  824. package/node_modules/@mui/utils/useForkRef/useForkRef.d.ts +1 -2
  825. package/node_modules/@mui/utils/useForkRef/useForkRef.js +32 -13
  826. package/package.json +24 -24
  827. package/node_modules/@babel/parser/index.cjs +0 -5
  828. package/node_modules/@babel/traverse/lib/scope/traverseForScope.js +0 -68
  829. package/node_modules/@babel/traverse/lib/scope/traverseForScope.js.map +0 -1
  830. package/node_modules/@babel/traverse/node_modules/globals/globals.json +0 -1563
  831. package/node_modules/@babel/traverse/node_modules/globals/index.js +0 -2
  832. package/node_modules/@babel/traverse/node_modules/globals/license +0 -9
  833. package/node_modules/@babel/traverse/node_modules/globals/package.json +0 -41
  834. package/node_modules/@babel/traverse/node_modules/globals/readme.md +0 -41
  835. package/node_modules/@emotion/cache/dist/declarations/types/index.d.ts +0 -45
  836. package/node_modules/@emotion/cache/src/index.d.ts +0 -2
  837. package/node_modules/@emotion/cache/types/index.d.ts +0 -45
  838. package/node_modules/@emotion/react/dist/declarations/dist/emotion-react.cjs.d.ts +0 -2
  839. package/node_modules/@emotion/react/dist/declarations/types/helper.d.ts +0 -14
  840. package/node_modules/@emotion/react/dist/declarations/types/index.d.ts +0 -115
  841. package/node_modules/@emotion/react/dist/declarations/types/jsx-dev-runtime.d.ts +0 -1
  842. package/node_modules/@emotion/react/dist/declarations/types/jsx-namespace.d.ts +0 -102
  843. package/node_modules/@emotion/react/dist/declarations/types/jsx-runtime.d.ts +0 -1
  844. package/node_modules/@emotion/react/dist/declarations/types/theming.d.ts +0 -31
  845. package/node_modules/@emotion/react/src/_isolated-hnrs.d.ts +0 -3
  846. package/node_modules/@emotion/react/src/css.js +0 -8
  847. package/node_modules/@emotion/react/src/global.js +0 -145
  848. package/node_modules/@emotion/react/src/index.d.ts +0 -1
  849. package/node_modules/@emotion/react/src/jsx-dev-runtime.d.ts +0 -1
  850. package/node_modules/@emotion/react/src/jsx-runtime.d.ts +0 -1
  851. package/node_modules/@emotion/react/src/jsx-runtime.js +0 -21
  852. package/node_modules/@emotion/react/src/jsx.js +0 -25
  853. package/node_modules/@emotion/react/src/keyframes.js +0 -23
  854. package/node_modules/@emotion/react/types/index.d.ts +0 -115
  855. package/node_modules/@emotion/react/types/jsx-dev-runtime.d.ts +0 -1
  856. package/node_modules/@emotion/react/types/jsx-namespace.d.ts +0 -102
  857. package/node_modules/@emotion/react/types/jsx-runtime.d.ts +0 -1
  858. package/node_modules/@emotion/react/types/theming.d.ts +0 -31
  859. package/node_modules/@emotion/styled/dist/declarations/types/base.d.ts +0 -197
  860. package/node_modules/@emotion/styled/dist/declarations/types/index.d.ts +0 -33
  861. package/node_modules/@emotion/styled/src/base.d.ts +0 -2
  862. package/node_modules/@emotion/styled/src/index.d.ts +0 -2
  863. package/node_modules/@emotion/styled/src/index.js +0 -11
  864. package/node_modules/@emotion/styled/src/utils.js +0 -86
  865. package/node_modules/@emotion/styled/types/jsx-namespace.d.ts +0 -14
  866. package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/index.js +0 -15
  867. package/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +0 -12
  868. package/node_modules/@jridgewell/set-array/LICENSE +0 -19
  869. package/node_modules/@jridgewell/set-array/README.md +0 -37
  870. package/node_modules/@jridgewell/set-array/dist/set-array.mjs +0 -69
  871. package/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +0 -1
  872. package/node_modules/@jridgewell/set-array/dist/set-array.umd.js +0 -83
  873. package/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +0 -1
  874. package/node_modules/@jridgewell/set-array/package.json +0 -65
  875. package/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +0 -8
  876. package/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +0 -1
  877. package/node_modules/@mui/material/OverridableComponent.d.ts +0 -67
  878. /package/node_modules/@emotion/cache/src/conditions/{false.js → false.ts} +0 -0
  879. /package/node_modules/@emotion/cache/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  880. /package/node_modules/@emotion/cache/src/conditions/{true.js → true.ts} +0 -0
  881. /package/node_modules/@emotion/react/src/conditions/{false.js → false.ts} +0 -0
  882. /package/node_modules/@emotion/react/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  883. /package/node_modules/@emotion/react/src/conditions/{true.js → true.ts} +0 -0
  884. /package/node_modules/@emotion/react/{types/helper.d.ts → src/types.ts} +0 -0
  885. /package/node_modules/@emotion/react/src/{utils.js → utils.ts} +0 -0
  886. /package/node_modules/@emotion/styled/src/conditions/{false.js → false.ts} +0 -0
  887. /package/node_modules/@emotion/styled/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  888. /package/node_modules/@emotion/styled/src/conditions/{true.js → true.ts} +0 -0
  889. /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{false.js → false.ts} +0 -0
  890. /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{is-browser.js → is-browser.ts} +0 -0
  891. /package/node_modules/@emotion/use-insertion-effect-with-fallbacks/src/conditions/{true.js → true.ts} +0 -0
@@ -23,21 +23,24 @@ const {
23
23
  isParenthesizedExpression
24
24
  } = _t;
25
25
  const TokenContext = exports.TokenContext = {
26
+ normal: 0,
26
27
  expressionStatement: 1,
27
28
  arrowBody: 2,
28
29
  exportDefault: 4,
29
- forHead: 8,
30
- forInHead: 16,
31
- forOfHead: 32,
32
- arrowFlowReturnType: 64
30
+ arrowFlowReturnType: 8,
31
+ forInitHead: 16,
32
+ forInHead: 32,
33
+ forOfHead: 64,
34
+ forInOrInitHeadAccumulate: 128,
35
+ forInOrInitHeadAccumulatePassThroughMask: 128
33
36
  };
34
37
  function expandAliases(obj) {
35
38
  const map = new Map();
36
39
  function add(type, func) {
37
40
  const fn = map.get(type);
38
- map.set(type, fn ? function (node, parent, stack, inForInit, getRawIdentifier) {
41
+ map.set(type, fn ? function (node, parent, stack, getRawIdentifier) {
39
42
  var _fn;
40
- return (_fn = fn(node, parent, stack, inForInit, getRawIdentifier)) != null ? _fn : func(node, parent, stack, inForInit, getRawIdentifier);
43
+ return (_fn = fn(node, parent, stack, getRawIdentifier)) != null ? _fn : func(node, parent, stack, getRawIdentifier);
41
44
  } : func);
42
45
  }
43
46
  for (const type of Object.keys(obj)) {
@@ -78,7 +81,7 @@ function needsWhitespaceBefore(node, parent) {
78
81
  function needsWhitespaceAfter(node, parent) {
79
82
  return needsWhitespace(node, parent, 2);
80
83
  }
81
- function needsParens(node, parent, tokenContext, inForInit, getRawIdentifier) {
84
+ function needsParens(node, parent, tokenContext, getRawIdentifier) {
82
85
  var _expandedParens$get;
83
86
  if (!parent) return false;
84
87
  if (isNewExpression(parent) && parent.callee === node) {
@@ -87,7 +90,7 @@ function needsParens(node, parent, tokenContext, inForInit, getRawIdentifier) {
87
90
  if (isDecorator(parent)) {
88
91
  return !isDecoratorMemberExpression(node) && !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) && !isParenthesizedExpression(node);
89
92
  }
90
- return (_expandedParens$get = expandedParens.get(node.type)) == null ? void 0 : _expandedParens$get(node, parent, tokenContext, inForInit, getRawIdentifier);
93
+ return (_expandedParens$get = expandedParens.get(node.type)) == null ? void 0 : _expandedParens$get(node, parent, tokenContext, getRawIdentifier);
91
94
  }
92
95
  function isDecoratorMemberExpression(node) {
93
96
  switch (node.type) {
@@ -1 +1 @@
1
- {"version":3,"names":["whitespace","require","parens","_t","FLIPPED_ALIAS_KEYS","VISITOR_KEYS","isCallExpression","isDecorator","isExpressionStatement","isMemberExpression","isNewExpression","isParenthesizedExpression","TokenContext","exports","expressionStatement","arrowBody","exportDefault","forHead","forInHead","forOfHead","arrowFlowReturnType","expandAliases","obj","map","Map","add","type","func","fn","get","set","node","parent","stack","inForInit","getRawIdentifier","_fn","Object","keys","aliases","alias","expandedParens","expandedWhitespaceNodes","nodes","isOrHasCallExpression","object","needsWhitespace","_expandedWhitespaceNo","expression","flag","needsWhitespaceBefore","needsWhitespaceAfter","needsParens","tokenContext","_expandedParens$get","callee","isDecoratorMemberExpression","computed","property","isLastChild","child","visitorKeys","i","length","val","Array","isArray","j"],"sources":["../../src/node/index.ts"],"sourcesContent":["import * as whitespace from \"./whitespace.ts\";\nimport * as parens from \"./parentheses.ts\";\nimport {\n FLIPPED_ALIAS_KEYS,\n VISITOR_KEYS,\n isCallExpression,\n isDecorator,\n isExpressionStatement,\n isMemberExpression,\n isNewExpression,\n isParenthesizedExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { WhitespaceFlag } from \"./whitespace.ts\";\n\nexport const enum TokenContext {\n expressionStatement = 1 << 0,\n arrowBody = 1 << 1,\n exportDefault = 1 << 2,\n forHead = 1 << 3,\n forInHead = 1 << 4,\n forOfHead = 1 << 5,\n arrowFlowReturnType = 1 << 6,\n}\n\ntype NodeHandler<R> = (\n node: t.Node,\n // todo:\n // node: K extends keyof typeof t\n // ? Extract<typeof t[K], { type: \"string\" }>\n // : t.Node,\n parent: t.Node,\n tokenContext?: number,\n inForStatementInit?: boolean,\n getRawIdentifier?: (node: t.Identifier) => string,\n) => R;\n\nexport type NodeHandlers<R> = {\n [K in string]?: NodeHandler<R>;\n};\n\nfunction expandAliases<R>(obj: NodeHandlers<R>) {\n const map = new Map<string, NodeHandler<R>>();\n\n function add(type: string, func: NodeHandler<R>) {\n const fn = map.get(type);\n map.set(\n type,\n fn\n ? function (node, parent, stack, inForInit, getRawIdentifier) {\n return (\n fn(node, parent, stack, inForInit, getRawIdentifier) ??\n func(node, parent, stack, inForInit, getRawIdentifier)\n );\n }\n : func,\n );\n }\n\n for (const type of Object.keys(obj)) {\n const aliases = FLIPPED_ALIAS_KEYS[type];\n if (aliases) {\n for (const alias of aliases) {\n add(alias, obj[type]);\n }\n } else {\n add(type, obj[type]);\n }\n }\n\n return map;\n}\n\n// Rather than using `t.is` on each object property, we pre-expand any type aliases\n// into concrete types so that the 'find' call below can be as fast as possible.\nconst expandedParens = expandAliases(parens);\nconst expandedWhitespaceNodes = expandAliases(whitespace.nodes);\n\nfunction isOrHasCallExpression(node: t.Node): boolean {\n if (isCallExpression(node)) {\n return true;\n }\n\n return isMemberExpression(node) && isOrHasCallExpression(node.object);\n}\n\nexport function needsWhitespace(\n node: t.Node,\n parent: t.Node,\n type: WhitespaceFlag,\n): boolean {\n if (!node) return false;\n\n if (isExpressionStatement(node)) {\n node = node.expression;\n }\n\n const flag = expandedWhitespaceNodes.get(node.type)?.(node, parent);\n\n if (typeof flag === \"number\") {\n return (flag & type) !== 0;\n }\n\n return false;\n}\n\nexport function needsWhitespaceBefore(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 1);\n}\n\nexport function needsWhitespaceAfter(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 2);\n}\n\nexport function needsParens(\n node: t.Node,\n parent: t.Node,\n tokenContext?: number,\n inForInit?: boolean,\n getRawIdentifier?: (node: t.Identifier) => string,\n) {\n if (!parent) return false;\n\n if (isNewExpression(parent) && parent.callee === node) {\n if (isOrHasCallExpression(node)) return true;\n }\n\n if (isDecorator(parent)) {\n return (\n !isDecoratorMemberExpression(node) &&\n !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) &&\n !isParenthesizedExpression(node)\n );\n }\n\n return expandedParens.get(node.type)?.(\n node,\n parent,\n tokenContext,\n inForInit,\n getRawIdentifier,\n );\n}\n\nfunction isDecoratorMemberExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"Identifier\":\n return true;\n case \"MemberExpression\":\n return (\n !node.computed &&\n node.property.type === \"Identifier\" &&\n isDecoratorMemberExpression(node.object)\n );\n default:\n return false;\n }\n}\n\nexport function isLastChild(parent: t.Node, child: t.Node) {\n const visitorKeys = VISITOR_KEYS[parent.type];\n for (let i = visitorKeys.length - 1; i >= 0; i--) {\n const val = (parent as any)[visitorKeys[i]] as t.Node | t.Node[] | null;\n if (val === child) {\n return true;\n } else if (Array.isArray(val)) {\n let j = val.length - 1;\n while (j >= 0 && val[j] === null) j--;\n return j >= 0 && val[j] === child;\n } else if (val) {\n return false;\n }\n }\n return false;\n}\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,EAAA,GAAAF,OAAA;AASsB;EARpBG,kBAAkB;EAClBC,YAAY;EACZC,gBAAgB;EAChBC,WAAW;EACXC,qBAAqB;EACrBC,kBAAkB;EAClBC,eAAe;EACfC;AAAyB,IAAAR,EAAA;AAAA,MAMTS,YAAY,GAAAC,OAAA,CAAAD,YAAA;EAAAE,mBAAA;EAAAC,SAAA;EAAAC,aAAA;EAAAC,OAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,mBAAA;AAAA;AA0B9B,SAASC,aAAaA,CAAIC,GAAoB,EAAE;EAC9C,MAAMC,GAAG,GAAG,IAAIC,GAAG,CAAyB,CAAC;EAE7C,SAASC,GAAGA,CAACC,IAAY,EAAEC,IAAoB,EAAE;IAC/C,MAAMC,EAAE,GAAGL,GAAG,CAACM,GAAG,CAACH,IAAI,CAAC;IACxBH,GAAG,CAACO,GAAG,CACLJ,IAAI,EACJE,EAAE,GACE,UAAUG,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAEC,gBAAgB,EAAE;MAAA,IAAAC,GAAA;MAC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;EAC1D,QAAQA,IAAI,CAACL,IAAI;IACf,KAAK,YAAY;MACf,OAAO,IAAI;IACb,KAAK,kBAAkB;MACrB,OACE,CAACK,IAAI,CAAC0B,QAAQ,IACd1B,IAAI,CAAC2B,QAAQ,CAAChC,IAAI,KAAK,YAAY,IACnC8B,2BAA2B,CAACzB,IAAI,CAACc,MAAM,CAAC;IAE5C;MACE,OAAO,KAAK;EAChB;AACF;AAEO,SAASc,WAAWA,CAAC3B,MAAc,EAAE4B,KAAa,EAAE;EACzD,MAAMC,WAAW,GAAGxD,YAAY,CAAC2B,MAAM,CAACN,IAAI,CAAC;EAC7C,KAAK,IAAIoC,CAAC,GAAGD,WAAW,CAACE,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAChD,MAAME,GAAG,GAAIhC,MAAM,CAAS6B,WAAW,CAACC,CAAC,CAAC,CAA6B;IACvE,IAAIE,GAAG,KAAKJ,KAAK,EAAE;MACjB,OAAO,IAAI;IACb,CAAC,MAAM,IAAIK,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,EAAE;MAC7B,IAAIG,CAAC,GAAGH,GAAG,CAACD,MAAM,GAAG,CAAC;MACtB,OAAOI,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAK,IAAI,EAAEA,CAAC,EAAE;MACrC,OAAOA,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAKP,KAAK;IACnC,CAAC,MAAM,IAAII,GAAG,EAAE;MACd,OAAO,KAAK;IACd;EACF;EACA,OAAO,KAAK;AACd","ignoreList":[]}
1
+ {"version":3,"names":["whitespace","require","parens","_t","FLIPPED_ALIAS_KEYS","VISITOR_KEYS","isCallExpression","isDecorator","isExpressionStatement","isMemberExpression","isNewExpression","isParenthesizedExpression","TokenContext","exports","normal","expressionStatement","arrowBody","exportDefault","arrowFlowReturnType","forInitHead","forInHead","forOfHead","forInOrInitHeadAccumulate","forInOrInitHeadAccumulatePassThroughMask","expandAliases","obj","map","Map","add","type","func","fn","get","set","node","parent","stack","getRawIdentifier","_fn","Object","keys","aliases","alias","expandedParens","expandedWhitespaceNodes","nodes","isOrHasCallExpression","object","needsWhitespace","_expandedWhitespaceNo","expression","flag","needsWhitespaceBefore","needsWhitespaceAfter","needsParens","tokenContext","_expandedParens$get","callee","isDecoratorMemberExpression","computed","property","isLastChild","child","visitorKeys","i","length","val","Array","isArray","j"],"sources":["../../src/node/index.ts"],"sourcesContent":["import * as whitespace from \"./whitespace.ts\";\nimport * as parens from \"./parentheses.ts\";\nimport {\n FLIPPED_ALIAS_KEYS,\n VISITOR_KEYS,\n isCallExpression,\n isDecorator,\n isExpressionStatement,\n isMemberExpression,\n isNewExpression,\n isParenthesizedExpression,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport type { WhitespaceFlag } from \"./whitespace.ts\";\n\nexport const enum TokenContext {\n normal = 0,\n expressionStatement = 1 << 0,\n arrowBody = 1 << 1,\n exportDefault = 1 << 2,\n arrowFlowReturnType = 1 << 3,\n forInitHead = 1 << 4,\n forInHead = 1 << 5,\n forOfHead = 1 << 6,\n // This flag lives across the token boundary, and will\n // be reset after forIn or forInit head is printed\n forInOrInitHeadAccumulate = 1 << 7,\n forInOrInitHeadAccumulatePassThroughMask = 0x80,\n}\n\ntype NodeHandler<R> = (\n node: t.Node,\n // todo:\n // node: K extends keyof typeof t\n // ? Extract<typeof t[K], { type: \"string\" }>\n // : t.Node,\n parent: t.Node,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) => R;\n\nexport type NodeHandlers<R> = {\n [K in string]?: NodeHandler<R>;\n};\n\nfunction expandAliases<R>(obj: NodeHandlers<R>) {\n const map = new Map<string, NodeHandler<R>>();\n\n function add(type: string, func: NodeHandler<R>) {\n const fn = map.get(type);\n map.set(\n type,\n fn\n ? function (node, parent, stack, getRawIdentifier) {\n return (\n fn(node, parent, stack, getRawIdentifier) ??\n func(node, parent, stack, getRawIdentifier)\n );\n }\n : func,\n );\n }\n\n for (const type of Object.keys(obj)) {\n const aliases = FLIPPED_ALIAS_KEYS[type];\n if (aliases) {\n for (const alias of aliases) {\n add(alias, obj[type]);\n }\n } else {\n add(type, obj[type]);\n }\n }\n\n return map;\n}\n\n// Rather than using `t.is` on each object property, we pre-expand any type aliases\n// into concrete types so that the 'find' call below can be as fast as possible.\nconst expandedParens = expandAliases(parens);\nconst expandedWhitespaceNodes = expandAliases(whitespace.nodes);\n\nfunction isOrHasCallExpression(node: t.Node): boolean {\n if (isCallExpression(node)) {\n return true;\n }\n\n return isMemberExpression(node) && isOrHasCallExpression(node.object);\n}\n\nexport function needsWhitespace(\n node: t.Node,\n parent: t.Node,\n type: WhitespaceFlag,\n): boolean {\n if (!node) return false;\n\n if (isExpressionStatement(node)) {\n node = node.expression;\n }\n\n const flag = expandedWhitespaceNodes.get(node.type)?.(node, parent);\n\n if (typeof flag === \"number\") {\n return (flag & type) !== 0;\n }\n\n return false;\n}\n\nexport function needsWhitespaceBefore(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 1);\n}\n\nexport function needsWhitespaceAfter(node: t.Node, parent: t.Node) {\n return needsWhitespace(node, parent, 2);\n}\n\nexport function needsParens(\n node: t.Node,\n parent: t.Node,\n tokenContext?: number,\n getRawIdentifier?: (node: t.Identifier) => string,\n) {\n if (!parent) return false;\n\n if (isNewExpression(parent) && parent.callee === node) {\n if (isOrHasCallExpression(node)) return true;\n }\n\n if (isDecorator(parent)) {\n return (\n !isDecoratorMemberExpression(node) &&\n !(isCallExpression(node) && isDecoratorMemberExpression(node.callee)) &&\n !isParenthesizedExpression(node)\n );\n }\n\n return expandedParens.get(node.type)?.(\n node,\n parent,\n tokenContext,\n getRawIdentifier,\n );\n}\n\nfunction isDecoratorMemberExpression(node: t.Node): boolean {\n switch (node.type) {\n case \"Identifier\":\n return true;\n case \"MemberExpression\":\n return (\n !node.computed &&\n node.property.type === \"Identifier\" &&\n isDecoratorMemberExpression(node.object)\n );\n default:\n return false;\n }\n}\n\nexport function isLastChild(parent: t.Node, child: t.Node) {\n const visitorKeys = VISITOR_KEYS[parent.type];\n for (let i = visitorKeys.length - 1; i >= 0; i--) {\n const val = (parent as any)[visitorKeys[i]] as t.Node | t.Node[] | null;\n if (val === child) {\n return true;\n } else if (Array.isArray(val)) {\n let j = val.length - 1;\n while (j >= 0 && val[j] === null) j--;\n return j >= 0 && val[j] === child;\n } else if (val) {\n return false;\n }\n }\n return false;\n}\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,EAAA,GAAAF,OAAA;AASsB;EARpBG,kBAAkB;EAClBC,YAAY;EACZC,gBAAgB;EAChBC,WAAW;EACXC,qBAAqB;EACrBC,kBAAkB;EAClBC,eAAe;EACfC;AAAyB,IAAAR,EAAA;AAAA,MAMTS,YAAY,GAAAC,OAAA,CAAAD,YAAA;EAAAE,MAAA;EAAAC,mBAAA;EAAAC,SAAA;EAAAC,aAAA;EAAAC,mBAAA;EAAAC,WAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,yBAAA;EAAAC,wCAAA;AAAA;AA8B9B,SAASC,aAAaA,CAAIC,GAAoB,EAAE;EAC9C,MAAMC,GAAG,GAAG,IAAIC,GAAG,CAAyB,CAAC;EAE7C,SAASC,GAAGA,CAACC,IAAY,EAAEC,IAAoB,EAAE;IAC/C,MAAMC,EAAE,GAAGL,GAAG,CAACM,GAAG,CAACH,IAAI,CAAC;IACxBH,GAAG,CAACO,GAAG,CACLJ,IAAI,EACJE,EAAE,GACE,UAAUG,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,gBAAgB,EAAE;MAAA,IAAAC,GAAA;MAC/C,QAAAA,GAAA,GACEP,EAAE,CAACG,IAAI,EAAEC,MAAM,EAAEC,KAAK,EAAEC,gBAAgB,CAAC,YAAAC,GAAA,GACzCR,IAAI,CAACI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AI,KAAK,YAAY,IACnC6B,2BAA2B,CAACxB,IAAI,CAACa,MAAM,CAAC;IAE5C;MACE,OAAO,KAAK;EAChB;AACF;AAEO,SAASc,WAAWA,CAAC1B,MAAc,EAAE2B,KAAa,EAAE;EACzD,MAAMC,WAAW,GAAG1D,YAAY,CAAC8B,MAAM,CAACN,IAAI,CAAC;EAC7C,KAAK,IAAImC,CAAC,GAAGD,WAAW,CAACE,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAChD,MAAME,GAAG,GAAI/B,MAAM,CAAS4B,WAAW,CAACC,CAAC,CAAC,CAA6B;IACvE,IAAIE,GAAG,KAAKJ,KAAK,EAAE;MACjB,OAAO,IAAI;IACb,CAAC,MAAM,IAAIK,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,EAAE;MAC7B,IAAIG,CAAC,GAAGH,GAAG,CAACD,MAAM,GAAG,CAAC;MACtB,OAAOI,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAK,IAAI,EAAEA,CAAC,EAAE;MACrC,OAAOA,CAAC,IAAI,CAAC,IAAIH,GAAG,CAACG,CAAC,CAAC,KAAKP,KAAK;IACnC,CAAC,MAAM,IAAII,GAAG,EAAE;MACd,OAAO,KAAK;IACd;EACF;EACA,OAAO,KAAK;AACd","ignoreList":[]}
@@ -19,10 +19,14 @@ exports.OptionalIndexedAccessType = OptionalIndexedAccessType;
19
19
  exports.OptionalCallExpression = exports.OptionalMemberExpression = OptionalMemberExpression;
20
20
  exports.SequenceExpression = SequenceExpression;
21
21
  exports.TSSatisfiesExpression = exports.TSAsExpression = TSAsExpression;
22
+ exports.TSConditionalType = TSConditionalType;
23
+ exports.TSConstructorType = exports.TSFunctionType = TSFunctionType;
22
24
  exports.TSInferType = TSInferType;
23
25
  exports.TSInstantiationExpression = TSInstantiationExpression;
26
+ exports.TSIntersectionType = TSIntersectionType;
24
27
  exports.UnaryLike = exports.TSTypeAssertion = UnaryLike;
25
- exports.TSIntersectionType = exports.TSUnionType = TSUnionType;
28
+ exports.TSTypeOperator = TSTypeOperator;
29
+ exports.TSUnionType = TSUnionType;
26
30
  exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation;
27
31
  exports.UpdateExpression = UpdateExpression;
28
32
  exports.AwaitExpression = exports.YieldExpression = YieldExpression;
@@ -116,20 +120,53 @@ function TSAsExpression(node, parent) {
116
120
  }
117
121
  return Binary(node, parent);
118
122
  }
123
+ function TSConditionalType(node, parent) {
124
+ const parentType = parent.type;
125
+ if (parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType" || parentType === "TSTypeOperator" || parentType === "TSTypeParameter") {
126
+ return true;
127
+ }
128
+ if ((parentType === "TSIntersectionType" || parentType === "TSUnionType") && parent.types[0] === node) {
129
+ return true;
130
+ }
131
+ if (parentType === "TSConditionalType" && (parent.checkType === node || parent.extendsType === node)) {
132
+ return true;
133
+ }
134
+ return false;
135
+ }
119
136
  function TSUnionType(node, parent) {
120
137
  const parentType = parent.type;
121
- return parentType === "TSArrayType" || parentType === "TSOptionalType" || parentType === "TSIntersectionType" || parentType === "TSRestType";
138
+ return parentType === "TSIntersectionType" || parentType === "TSTypeOperator" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType";
139
+ }
140
+ function TSIntersectionType(node, parent) {
141
+ const parentType = parent.type;
142
+ return parentType === "TSTypeOperator" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType";
122
143
  }
123
144
  function TSInferType(node, parent) {
124
145
  const parentType = parent.type;
125
- return parentType === "TSArrayType" || parentType === "TSOptionalType";
146
+ if (parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType") {
147
+ return true;
148
+ }
149
+ if (node.typeParameter.constraint) {
150
+ if ((parentType === "TSIntersectionType" || parentType === "TSUnionType") && parent.types[0] === node) {
151
+ return true;
152
+ }
153
+ }
154
+ return false;
155
+ }
156
+ function TSTypeOperator(node, parent) {
157
+ const parentType = parent.type;
158
+ return parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSOptionalType";
126
159
  }
127
160
  function TSInstantiationExpression(node, parent) {
128
161
  const parentType = parent.type;
129
162
  return (parentType === "CallExpression" || parentType === "OptionalCallExpression" || parentType === "NewExpression" || parentType === "TSInstantiationExpression") && !!parent.typeParameters;
130
163
  }
131
- function BinaryExpression(node, parent, tokenContext, inForStatementInit) {
132
- return node.operator === "in" && inForStatementInit;
164
+ function TSFunctionType(node, parent) {
165
+ const parentType = parent.type;
166
+ return parentType === "TSIntersectionType" || parentType === "TSUnionType" || parentType === "TSTypeOperator" || parentType === "TSOptionalType" || parentType === "TSArrayType" || parentType === "TSIndexedAccessType" && parent.objectType === node || parentType === "TSConditionalType" && (parent.checkType === node || parent.extendsType === node);
167
+ }
168
+ function BinaryExpression(node, parent, tokenContext) {
169
+ return node.operator === "in" && Boolean(tokenContext & _index.TokenContext.forInOrInitHeadAccumulate);
133
170
  }
134
171
  function SequenceExpression(node, parent) {
135
172
  const parentType = parent.type;
@@ -190,7 +227,7 @@ function LogicalExpression(node, parent) {
190
227
  return parent.operator !== "??";
191
228
  }
192
229
  }
193
- function Identifier(node, parent, tokenContext, _inForInit, getRawIdentifier) {
230
+ function Identifier(node, parent, tokenContext, getRawIdentifier) {
194
231
  var _node$extra;
195
232
  const parentType = parent.type;
196
233
  if ((_node$extra = node.extra) != null && _node$extra.parenthesized && parentType === "AssignmentExpression" && parent.left === node) {
@@ -211,7 +248,7 @@ function Identifier(node, parent, tokenContext, _inForInit, getRawIdentifier) {
211
248
  computed: true,
212
249
  optional: false
213
250
  });
214
- if (isFollowedByBracket && tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.forHead | _index.TokenContext.forInHead)) {
251
+ if (isFollowedByBracket && tokenContext & (_index.TokenContext.expressionStatement | _index.TokenContext.forInitHead | _index.TokenContext.forInHead)) {
215
252
  return true;
216
253
  }
217
254
  return Boolean(tokenContext & _index.TokenContext.forOfHead);
@@ -1 +1 @@
1
- {"version":3,"names":["_t","require","_index","isArrayTypeAnnotation","isBinaryExpression","isCallExpression","isForOfStatement","isIndexedAccessType","isMemberExpression","isObjectPattern","isOptionalMemberExpression","isYieldExpression","isStatement","PRECEDENCE","Map","getBinaryPrecedence","node","nodeType","get","operator","isTSTypeExpression","isClassExtendsClause","parent","parentType","type","superClass","hasPostfixPart","object","callee","tag","NullableTypeAnnotation","FunctionTypeAnnotation","tokenContext","Boolean","TokenContext","arrowFlowReturnType","UpdateExpression","needsParenBeforeExpressionBrace","expressionStatement","arrowBody","ObjectExpression","DoExpression","async","Binary","left","parentPos","nodePos","right","undefined","UnionTypeAnnotation","OptionalIndexedAccessType","objectType","TSAsExpression","TSUnionType","TSInferType","TSInstantiationExpression","typeParameters","BinaryExpression","inForStatementInit","SequenceExpression","property","YieldExpression","test","ClassExpression","exportDefault","UnaryLike","FunctionExpression","ConditionalExpression","OptionalMemberExpression","AssignmentExpression","LogicalExpression","Identifier","_inForInit","getRawIdentifier","_node$extra","extra","parenthesized","rightType","id","name","isFollowedByBracket","computed","optional","forHead","forInHead","forOfHead","await"],"sources":["../../src/node/parentheses.ts"],"sourcesContent":["import {\n isArrayTypeAnnotation,\n isBinaryExpression,\n isCallExpression,\n isForOfStatement,\n isIndexedAccessType,\n isMemberExpression,\n isObjectPattern,\n isOptionalMemberExpression,\n isYieldExpression,\n isStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport { TokenContext } from \"./index.ts\";\n\nconst PRECEDENCE = new Map([\n [\"||\", 0],\n [\"??\", 0],\n [\"|>\", 0],\n [\"&&\", 1],\n [\"|\", 2],\n [\"^\", 3],\n [\"&\", 4],\n [\"==\", 5],\n [\"===\", 5],\n [\"!=\", 5],\n [\"!==\", 5],\n [\"<\", 6],\n [\">\", 6],\n [\"<=\", 6],\n [\">=\", 6],\n [\"in\", 6],\n [\"instanceof\", 6],\n [\">>\", 7],\n [\"<<\", 7],\n [\">>>\", 7],\n [\"+\", 8],\n [\"-\", 8],\n [\"*\", 9],\n [\"/\", 9],\n [\"%\", 9],\n [\"**\", 10],\n]);\n\nfunction getBinaryPrecedence(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n nodeType: string,\n): number;\nfunction getBinaryPrecedence(\n node: t.Node,\n nodeType: string,\n): number | undefined;\nfunction getBinaryPrecedence(node: t.Node, nodeType: string) {\n if (nodeType === \"BinaryExpression\" || nodeType === \"LogicalExpression\") {\n return PRECEDENCE.get((node as t.Binary).operator);\n }\n if (nodeType === \"TSAsExpression\" || nodeType === \"TSSatisfiesExpression\") {\n return PRECEDENCE.get(\"in\");\n }\n}\n\nfunction isTSTypeExpression(nodeType: string) {\n return (\n nodeType === \"TSAsExpression\" ||\n nodeType === \"TSSatisfiesExpression\" ||\n nodeType === \"TSTypeAssertion\"\n );\n}\n\nconst isClassExtendsClause = (\n node: t.Node,\n parent: t.Node,\n): parent is t.Class => {\n const parentType = parent.type;\n return (\n (parentType === \"ClassDeclaration\" || parentType === \"ClassExpression\") &&\n parent.superClass === node\n );\n};\n\nconst hasPostfixPart = (node: t.Node, parent: t.Node) => {\n const parentType = parent.type;\n return (\n ((parentType === \"MemberExpression\" ||\n parentType === \"OptionalMemberExpression\") &&\n parent.object === node) ||\n ((parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\") &&\n parent.callee === node) ||\n (parentType === \"TaggedTemplateExpression\" && parent.tag === node) ||\n parentType === \"TSNonNullExpression\"\n );\n};\n\nexport function NullableTypeAnnotation(\n node: t.NullableTypeAnnotation,\n parent: t.Node,\n): boolean {\n return isArrayTypeAnnotation(parent);\n}\n\nexport function FunctionTypeAnnotation(\n node: t.FunctionTypeAnnotation,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n const parentType = parent.type;\n return (\n // (() => A) | (() => B)\n parentType === \"UnionTypeAnnotation\" ||\n // (() => A) & (() => B)\n parentType === \"IntersectionTypeAnnotation\" ||\n // (() => A)[]\n parentType === \"ArrayTypeAnnotation\" ||\n Boolean(tokenContext & TokenContext.arrowFlowReturnType)\n );\n}\n\nexport function UpdateExpression(\n node: t.UpdateExpression,\n parent: t.Node,\n): boolean {\n return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent);\n}\n\nfunction needsParenBeforeExpressionBrace(tokenContext: number) {\n return Boolean(\n tokenContext & (TokenContext.expressionStatement | TokenContext.arrowBody),\n );\n}\n\nexport function ObjectExpression(\n node: t.ObjectExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return needsParenBeforeExpressionBrace(tokenContext);\n}\n\nexport function DoExpression(\n node: t.DoExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n // `async do` can start an expression statement\n return (\n !node.async && Boolean(tokenContext & TokenContext.expressionStatement)\n );\n}\n\nexport function Binary(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean | undefined {\n const parentType = parent.type;\n if (\n node.type === \"BinaryExpression\" &&\n node.operator === \"**\" &&\n parentType === \"BinaryExpression\" &&\n parent.operator === \"**\"\n ) {\n return parent.left === node;\n }\n\n if (isClassExtendsClause(node, parent)) {\n return true;\n }\n\n if (\n hasPostfixPart(node, parent) ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"AwaitExpression\"\n ) {\n return true;\n }\n\n const parentPos = getBinaryPrecedence(parent, parentType);\n if (parentPos != null) {\n const nodePos = getBinaryPrecedence(node, node.type);\n if (\n // Logical expressions with the same precedence don't need parens.\n (parentPos === nodePos &&\n parentType === \"BinaryExpression\" &&\n parent.right === node) ||\n parentPos > nodePos\n ) {\n return true;\n }\n }\n\n return undefined;\n}\n\nexport function UnionTypeAnnotation(\n node: t.UnionTypeAnnotation,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"ArrayTypeAnnotation\" ||\n parentType === \"NullableTypeAnnotation\" ||\n parentType === \"IntersectionTypeAnnotation\" ||\n parentType === \"UnionTypeAnnotation\"\n );\n}\n\nexport { UnionTypeAnnotation as IntersectionTypeAnnotation };\n\nexport function OptionalIndexedAccessType(\n node: t.OptionalIndexedAccessType,\n parent: t.Node,\n): boolean {\n return isIndexedAccessType(parent) && parent.objectType === node;\n}\n\nexport function TSAsExpression(\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean {\n if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left === node\n ) {\n return true;\n }\n if (\n parent.type === \"BinaryExpression\" &&\n (parent.operator === \"|\" || parent.operator === \"&\") &&\n node === parent.left\n ) {\n return true;\n }\n return Binary(node, parent);\n}\n\nexport { TSAsExpression as TSSatisfiesExpression };\n\nexport { UnaryLike as TSTypeAssertion };\n\nexport function TSUnionType(node: t.TSUnionType, parent: t.Node): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSArrayType\" ||\n parentType === \"TSOptionalType\" ||\n parentType === \"TSIntersectionType\" ||\n parentType === \"TSRestType\"\n );\n}\n\nexport { TSUnionType as TSIntersectionType };\n\nexport function TSInferType(node: t.TSInferType, parent: t.Node): boolean {\n const parentType = parent.type;\n return parentType === \"TSArrayType\" || parentType === \"TSOptionalType\";\n}\n\nexport function TSInstantiationExpression(\n node: t.TSInstantiationExpression,\n parent: t.Node,\n) {\n const parentType = parent.type;\n return (\n (parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\" ||\n parentType === \"TSInstantiationExpression\") &&\n !!parent.typeParameters\n );\n}\n\nexport function BinaryExpression(\n node: t.BinaryExpression,\n parent: t.Node,\n tokenContext: unknown,\n inForStatementInit: boolean,\n): boolean {\n // for ((1 in []);;);\n // for (var x = (1 in []) in 2);\n return node.operator === \"in\" && inForStatementInit;\n}\n\nexport function SequenceExpression(\n node: t.SequenceExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"SequenceExpression\" ||\n parentType === \"ParenthesizedExpression\" ||\n (parentType === \"MemberExpression\" && parent.property === node) ||\n (parentType === \"OptionalMemberExpression\" && parent.property === node) ||\n parentType === \"TemplateLiteral\"\n ) {\n return false;\n }\n if (parentType === \"ClassDeclaration\") {\n return true;\n }\n if (parentType === \"ForOfStatement\") {\n return parent.right === node;\n }\n if (parentType === \"ExportDefaultDeclaration\") {\n return true;\n }\n\n return !isStatement(parent);\n}\n\nexport function YieldExpression(\n node: t.YieldExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n hasPostfixPart(node, parent) ||\n (parentType === \"AwaitExpression\" && isYieldExpression(node)) ||\n (parentType === \"ConditionalExpression\" && node === parent.test) ||\n isClassExtendsClause(node, parent) ||\n isTSTypeExpression(parentType)\n );\n}\n\nexport { YieldExpression as AwaitExpression };\n\nexport function ClassExpression(\n node: t.ClassExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function UnaryLike(\n node:\n | t.UnaryLike\n | t.TSTypeAssertion\n | t.ArrowFunctionExpression\n | t.ConditionalExpression\n | t.AssignmentExpression,\n parent: t.Node,\n): boolean {\n return (\n hasPostfixPart(node, parent) ||\n (isBinaryExpression(parent) &&\n parent.operator === \"**\" &&\n parent.left === node) ||\n isClassExtendsClause(node, parent)\n );\n}\n\nexport function FunctionExpression(\n node: t.FunctionExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function ConditionalExpression(\n node:\n | t.ConditionalExpression\n | t.ArrowFunctionExpression\n | t.AssignmentExpression,\n parent?: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n (parentType === \"ConditionalExpression\" && parent.test === node) ||\n parentType === \"AwaitExpression\" ||\n isTSTypeExpression(parentType)\n ) {\n return true;\n }\n\n return UnaryLike(node, parent);\n}\n\nexport { ConditionalExpression as ArrowFunctionExpression };\n\nexport function OptionalMemberExpression(\n node: t.OptionalMemberExpression,\n parent: t.Node,\n): boolean {\n return (\n (isCallExpression(parent) && parent.callee === node) ||\n (isMemberExpression(parent) && parent.object === node)\n );\n}\n\nexport { OptionalMemberExpression as OptionalCallExpression };\n\nexport function AssignmentExpression(\n node: t.AssignmentExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n if (\n needsParenBeforeExpressionBrace(tokenContext) &&\n isObjectPattern(node.left)\n ) {\n return true;\n } else {\n return ConditionalExpression(node, parent);\n }\n}\n\nexport function LogicalExpression(\n node: t.LogicalExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (isTSTypeExpression(parentType)) return true;\n if (parentType !== \"LogicalExpression\") return false;\n switch (node.operator) {\n case \"||\":\n return parent.operator === \"??\" || parent.operator === \"&&\";\n case \"&&\":\n return parent.operator === \"??\";\n case \"??\":\n return parent.operator !== \"??\";\n }\n}\n\nexport function Identifier(\n node: t.Identifier,\n parent: t.Node,\n tokenContext: number,\n _inForInit: boolean,\n getRawIdentifier: (node: t.Identifier) => string,\n): boolean {\n const parentType = parent.type;\n // 13.15.2 AssignmentExpression RS: Evaluation\n // (fn) = function () {};\n if (\n node.extra?.parenthesized &&\n parentType === \"AssignmentExpression\" &&\n parent.left === node\n ) {\n const rightType = parent.right.type;\n if (\n (rightType === \"FunctionExpression\" || rightType === \"ClassExpression\") &&\n parent.right.id == null\n ) {\n return true;\n }\n }\n\n if (getRawIdentifier && getRawIdentifier(node) !== node.name) {\n return false;\n }\n\n // Non-strict code allows the identifier `let`, but it cannot occur as-is in\n // certain contexts to avoid ambiguity with contextual keyword `let`.\n if (node.name === \"let\") {\n // Some contexts only forbid `let [`, so check if the next token would\n // be the left bracket of a computed member expression.\n const isFollowedByBracket =\n isMemberExpression(parent, {\n object: node,\n computed: true,\n }) ||\n isOptionalMemberExpression(parent, {\n object: node,\n computed: true,\n optional: false,\n });\n if (\n isFollowedByBracket &&\n tokenContext &\n (TokenContext.expressionStatement |\n TokenContext.forHead |\n TokenContext.forInHead)\n ) {\n return true;\n }\n return Boolean(tokenContext & TokenContext.forOfHead);\n }\n\n // ECMAScript specifically forbids a for-of loop from starting with the\n // token sequence `for (async of`, because it would be ambiguous with\n // `for (async of => {};;)`, so we need to add extra parentheses.\n return (\n node.name === \"async\" &&\n isForOfStatement(parent, { left: node, await: false })\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAcA,IAAAC,MAAA,GAAAD,OAAA;AAA0C;EAbxCE,qBAAqB;EACrBC,kBAAkB;EAClBC,gBAAgB;EAChBC,gBAAgB;EAChBC,mBAAmB;EACnBC,kBAAkB;EAClBC,eAAe;EACfC,0BAA0B;EAC1BC,iBAAiB;EACjBC;AAAW,IAAAZ,EAAA;AAMb,MAAMa,UAAU,GAAG,IAAIC,GAAG,CAAC,CACzB,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,K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,IAAI,KAAK5B,IAAI,EACpB;IACA,MAAM6D,SAAS,GAAGvD,MAAM,CAACyB,KAAK,CAACvB,IAAI;IACnC,IACE,CAACqD,SAAS,KAAK,oBAAoB,IAAIA,SAAS,KAAK,iBAAiB,KACtEvD,MAAM,CAACyB,KAAK,CAAC+B,EAAE,IAAI,IAAI,EACvB;MACA,OAAO,IAAI;IACb;EACF;EAEA,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACzD,IAAI,CAAC,KAAKA,IAAI,CAAC+D,IAAI,EAAE;IAC5D,OAAO,KAAK;EACd;EAIA,IAAI/D,IAAI,CAAC+D,IAAI,KAAK,KAAK,EAAE;IAGvB,MAAMC,mBAAmB,GACvBxE,kBAAkB,CAACc,MAAM,EAAE;MACzBK,MAAM,EAAEX,IAAI;MACZiE,QAAQ,EAAE;IACZ,CAAC,CAAC,IACFvE,0BAA0B,CAACY,MAAM,EAAE;MACjCK,MAAM,EAAEX,IAAI;MACZiE,QAAQ,EAAE,IAAI;MACdC,QAAQ,EAAE;IACZ,CAAC,CAAC;IACJ,IACEF,mBAAmB,IACnBhD,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAC/BJ,mBAAY,CAACiD,OAAO,GACpBjD,mBAAY,CAACkD,SAAS,CAAC,EAC3B;MACA,OAAO,IAAI;IACb;IACA,OAAOnD,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAACmD,SAAS,CAAC;EACvD;EAKA,OACErE,IAAI,CAAC+D,IAAI,KAAK,OAAO,IACrBzE,gBAAgB,CAACgB,MAAM,EAAE;IAAEsB,IAAI,EAAE5B,IAAI;IAAEsE,KAAK,EAAE;EAAM,CAAC,CAAC;AAE1D","ignoreList":[]}
1
+ {"version":3,"names":["_t","require","_index","isArrayTypeAnnotation","isBinaryExpression","isCallExpression","isForOfStatement","isIndexedAccessType","isMemberExpression","isObjectPattern","isOptionalMemberExpression","isYieldExpression","isStatement","PRECEDENCE","Map","getBinaryPrecedence","node","nodeType","get","operator","isTSTypeExpression","isClassExtendsClause","parent","parentType","type","superClass","hasPostfixPart","object","callee","tag","NullableTypeAnnotation","FunctionTypeAnnotation","tokenContext","Boolean","TokenContext","arrowFlowReturnType","UpdateExpression","needsParenBeforeExpressionBrace","expressionStatement","arrowBody","ObjectExpression","DoExpression","async","Binary","left","parentPos","nodePos","right","undefined","UnionTypeAnnotation","OptionalIndexedAccessType","objectType","TSAsExpression","TSConditionalType","types","checkType","extendsType","TSUnionType","TSIntersectionType","TSInferType","typeParameter","constraint","TSTypeOperator","TSInstantiationExpression","typeParameters","TSFunctionType","BinaryExpression","forInOrInitHeadAccumulate","SequenceExpression","property","YieldExpression","test","ClassExpression","exportDefault","UnaryLike","FunctionExpression","ConditionalExpression","OptionalMemberExpression","AssignmentExpression","LogicalExpression","Identifier","getRawIdentifier","_node$extra","extra","parenthesized","rightType","id","name","isFollowedByBracket","computed","optional","forInitHead","forInHead","forOfHead","await"],"sources":["../../src/node/parentheses.ts"],"sourcesContent":["import {\n isArrayTypeAnnotation,\n isBinaryExpression,\n isCallExpression,\n isForOfStatement,\n isIndexedAccessType,\n isMemberExpression,\n isObjectPattern,\n isOptionalMemberExpression,\n isYieldExpression,\n isStatement,\n} from \"@babel/types\";\nimport type * as t from \"@babel/types\";\n\nimport { TokenContext } from \"./index.ts\";\n\nconst PRECEDENCE = new Map([\n [\"||\", 0],\n [\"??\", 0],\n [\"|>\", 0],\n [\"&&\", 1],\n [\"|\", 2],\n [\"^\", 3],\n [\"&\", 4],\n [\"==\", 5],\n [\"===\", 5],\n [\"!=\", 5],\n [\"!==\", 5],\n [\"<\", 6],\n [\">\", 6],\n [\"<=\", 6],\n [\">=\", 6],\n [\"in\", 6],\n [\"instanceof\", 6],\n [\">>\", 7],\n [\"<<\", 7],\n [\">>>\", 7],\n [\"+\", 8],\n [\"-\", 8],\n [\"*\", 9],\n [\"/\", 9],\n [\"%\", 9],\n [\"**\", 10],\n]);\n\nfunction getBinaryPrecedence(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n nodeType: string,\n): number;\nfunction getBinaryPrecedence(\n node: t.Node,\n nodeType: string,\n): number | undefined;\nfunction getBinaryPrecedence(node: t.Node, nodeType: string) {\n if (nodeType === \"BinaryExpression\" || nodeType === \"LogicalExpression\") {\n return PRECEDENCE.get((node as t.Binary).operator);\n }\n if (nodeType === \"TSAsExpression\" || nodeType === \"TSSatisfiesExpression\") {\n return PRECEDENCE.get(\"in\");\n }\n}\n\nfunction isTSTypeExpression(nodeType: string) {\n return (\n nodeType === \"TSAsExpression\" ||\n nodeType === \"TSSatisfiesExpression\" ||\n nodeType === \"TSTypeAssertion\"\n );\n}\n\nconst isClassExtendsClause = (\n node: t.Node,\n parent: t.Node,\n): parent is t.Class => {\n const parentType = parent.type;\n return (\n (parentType === \"ClassDeclaration\" || parentType === \"ClassExpression\") &&\n parent.superClass === node\n );\n};\n\nconst hasPostfixPart = (node: t.Node, parent: t.Node) => {\n const parentType = parent.type;\n return (\n ((parentType === \"MemberExpression\" ||\n parentType === \"OptionalMemberExpression\") &&\n parent.object === node) ||\n ((parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\") &&\n parent.callee === node) ||\n (parentType === \"TaggedTemplateExpression\" && parent.tag === node) ||\n parentType === \"TSNonNullExpression\"\n );\n};\n\nexport function NullableTypeAnnotation(\n node: t.NullableTypeAnnotation,\n parent: t.Node,\n): boolean {\n return isArrayTypeAnnotation(parent);\n}\n\nexport function FunctionTypeAnnotation(\n node: t.FunctionTypeAnnotation,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n const parentType = parent.type;\n return (\n // (() => A) | (() => B)\n parentType === \"UnionTypeAnnotation\" ||\n // (() => A) & (() => B)\n parentType === \"IntersectionTypeAnnotation\" ||\n // (() => A)[]\n parentType === \"ArrayTypeAnnotation\" ||\n Boolean(tokenContext & TokenContext.arrowFlowReturnType)\n );\n}\n\nexport function UpdateExpression(\n node: t.UpdateExpression,\n parent: t.Node,\n): boolean {\n return hasPostfixPart(node, parent) || isClassExtendsClause(node, parent);\n}\n\nfunction needsParenBeforeExpressionBrace(tokenContext: number) {\n return Boolean(\n tokenContext & (TokenContext.expressionStatement | TokenContext.arrowBody),\n );\n}\n\nexport function ObjectExpression(\n node: t.ObjectExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return needsParenBeforeExpressionBrace(tokenContext);\n}\n\nexport function DoExpression(\n node: t.DoExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n // `async do` can start an expression statement\n return (\n !node.async && Boolean(tokenContext & TokenContext.expressionStatement)\n );\n}\n\nexport function Binary(\n node: t.Binary | t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean | undefined {\n const parentType = parent.type;\n if (\n node.type === \"BinaryExpression\" &&\n node.operator === \"**\" &&\n parentType === \"BinaryExpression\" &&\n parent.operator === \"**\"\n ) {\n return parent.left === node;\n }\n\n if (isClassExtendsClause(node, parent)) {\n return true;\n }\n\n if (\n hasPostfixPart(node, parent) ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"AwaitExpression\"\n ) {\n return true;\n }\n\n const parentPos = getBinaryPrecedence(parent, parentType);\n if (parentPos != null) {\n const nodePos = getBinaryPrecedence(node, node.type);\n if (\n // Logical expressions with the same precedence don't need parens.\n (parentPos === nodePos &&\n parentType === \"BinaryExpression\" &&\n parent.right === node) ||\n parentPos > nodePos\n ) {\n return true;\n }\n }\n\n return undefined;\n}\n\nexport function UnionTypeAnnotation(\n node: t.UnionTypeAnnotation,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"ArrayTypeAnnotation\" ||\n parentType === \"NullableTypeAnnotation\" ||\n parentType === \"IntersectionTypeAnnotation\" ||\n parentType === \"UnionTypeAnnotation\"\n );\n}\n\nexport { UnionTypeAnnotation as IntersectionTypeAnnotation };\n\nexport function OptionalIndexedAccessType(\n node: t.OptionalIndexedAccessType,\n parent: t.Node,\n): boolean {\n return isIndexedAccessType(parent) && parent.objectType === node;\n}\n\nexport function TSAsExpression(\n node: t.TSAsExpression | t.TSSatisfiesExpression,\n parent: t.Node,\n): boolean {\n if (\n (parent.type === \"AssignmentExpression\" ||\n parent.type === \"AssignmentPattern\") &&\n parent.left === node\n ) {\n return true;\n }\n if (\n parent.type === \"BinaryExpression\" &&\n (parent.operator === \"|\" || parent.operator === \"&\") &&\n node === parent.left\n ) {\n return true;\n }\n return Binary(node, parent);\n}\n\nexport { TSAsExpression as TSSatisfiesExpression };\n\nexport { UnaryLike as TSTypeAssertion };\n\nexport function TSConditionalType(\n node: t.TSConditionalType,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\" ||\n parentType === \"TSTypeOperator\" ||\n // for `infer K extends (L extends M ? M : ...)`\n parentType === \"TSTypeParameter\"\n ) {\n return true;\n }\n if (\n (parentType === \"TSIntersectionType\" || parentType === \"TSUnionType\") &&\n parent.types[0] === node\n ) {\n return true;\n }\n if (\n parentType === \"TSConditionalType\" &&\n (parent.checkType === node || parent.extendsType === node)\n ) {\n return true;\n }\n return false;\n}\n\nexport function TSUnionType(node: t.TSUnionType, parent: t.Node): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSIntersectionType\" ||\n parentType === \"TSTypeOperator\" ||\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n );\n}\n\nexport function TSIntersectionType(\n node: t.TSUnionType,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSTypeOperator\" ||\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n );\n}\n\nexport function TSInferType(node: t.TSInferType, parent: t.Node): boolean {\n const parentType = parent.type;\n if (\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n ) {\n return true;\n }\n if (node.typeParameter.constraint) {\n if (\n (parentType === \"TSIntersectionType\" || parentType === \"TSUnionType\") &&\n parent.types[0] === node\n ) {\n return true;\n }\n }\n return false;\n}\n\nexport function TSTypeOperator(\n node: t.TSTypeOperator,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n parentType === \"TSOptionalType\"\n );\n}\n\nexport function TSInstantiationExpression(\n node: t.TSInstantiationExpression,\n parent: t.Node,\n) {\n const parentType = parent.type;\n return (\n (parentType === \"CallExpression\" ||\n parentType === \"OptionalCallExpression\" ||\n parentType === \"NewExpression\" ||\n parentType === \"TSInstantiationExpression\") &&\n !!(process.env.BABEL_8_BREAKING\n ? // @ts-ignore(Babel 7 vs Babel 8) Babel 8 AST\n parent.typeArguments\n : // @ts-ignore(Babel 7 vs Babel 8) Babel 7 AST\n parent.typeParameters)\n );\n}\n\nexport function TSFunctionType(\n node: t.TSFunctionType,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"TSIntersectionType\" ||\n parentType === \"TSUnionType\" ||\n parentType === \"TSTypeOperator\" ||\n parentType === \"TSOptionalType\" ||\n parentType === \"TSArrayType\" ||\n (parentType === \"TSIndexedAccessType\" && parent.objectType === node) ||\n (parentType === \"TSConditionalType\" &&\n (parent.checkType === node || parent.extendsType === node))\n );\n}\n\nexport { TSFunctionType as TSConstructorType };\n\nexport function BinaryExpression(\n node: t.BinaryExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n // for ((1 in []);;);\n // for (var x = (1 in []) in 2);\n return (\n node.operator === \"in\" &&\n Boolean(tokenContext & TokenContext.forInOrInitHeadAccumulate)\n );\n}\n\nexport function SequenceExpression(\n node: t.SequenceExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"SequenceExpression\" ||\n parentType === \"ParenthesizedExpression\" ||\n (parentType === \"MemberExpression\" && parent.property === node) ||\n (parentType === \"OptionalMemberExpression\" && parent.property === node) ||\n parentType === \"TemplateLiteral\"\n ) {\n return false;\n }\n if (parentType === \"ClassDeclaration\") {\n return true;\n }\n if (parentType === \"ForOfStatement\") {\n return parent.right === node;\n }\n if (parentType === \"ExportDefaultDeclaration\") {\n return true;\n }\n\n return !isStatement(parent);\n}\n\nexport function YieldExpression(\n node: t.YieldExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n return (\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n hasPostfixPart(node, parent) ||\n (parentType === \"AwaitExpression\" && isYieldExpression(node)) ||\n (parentType === \"ConditionalExpression\" && node === parent.test) ||\n isClassExtendsClause(node, parent) ||\n isTSTypeExpression(parentType)\n );\n}\n\nexport { YieldExpression as AwaitExpression };\n\nexport function ClassExpression(\n node: t.ClassExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function UnaryLike(\n node:\n | t.UnaryLike\n | t.TSTypeAssertion\n | t.ArrowFunctionExpression\n | t.ConditionalExpression\n | t.AssignmentExpression,\n parent: t.Node,\n): boolean {\n return (\n hasPostfixPart(node, parent) ||\n (isBinaryExpression(parent) &&\n parent.operator === \"**\" &&\n parent.left === node) ||\n isClassExtendsClause(node, parent)\n );\n}\n\nexport function FunctionExpression(\n node: t.FunctionExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n return Boolean(\n tokenContext &\n (TokenContext.expressionStatement | TokenContext.exportDefault),\n );\n}\n\nexport function ConditionalExpression(\n node:\n | t.ConditionalExpression\n | t.ArrowFunctionExpression\n | t.AssignmentExpression,\n parent?: t.Node,\n): boolean {\n const parentType = parent.type;\n if (\n parentType === \"UnaryExpression\" ||\n parentType === \"SpreadElement\" ||\n parentType === \"BinaryExpression\" ||\n parentType === \"LogicalExpression\" ||\n (parentType === \"ConditionalExpression\" && parent.test === node) ||\n parentType === \"AwaitExpression\" ||\n isTSTypeExpression(parentType)\n ) {\n return true;\n }\n\n return UnaryLike(node, parent);\n}\n\nexport { ConditionalExpression as ArrowFunctionExpression };\n\nexport function OptionalMemberExpression(\n node: t.OptionalMemberExpression,\n parent: t.Node,\n): boolean {\n return (\n (isCallExpression(parent) && parent.callee === node) ||\n (isMemberExpression(parent) && parent.object === node)\n );\n}\n\nexport { OptionalMemberExpression as OptionalCallExpression };\n\nexport function AssignmentExpression(\n node: t.AssignmentExpression,\n parent: t.Node,\n tokenContext: number,\n): boolean {\n if (\n needsParenBeforeExpressionBrace(tokenContext) &&\n isObjectPattern(node.left)\n ) {\n return true;\n } else {\n return ConditionalExpression(node, parent);\n }\n}\n\nexport function LogicalExpression(\n node: t.LogicalExpression,\n parent: t.Node,\n): boolean {\n const parentType = parent.type;\n if (isTSTypeExpression(parentType)) return true;\n if (parentType !== \"LogicalExpression\") return false;\n switch (node.operator) {\n case \"||\":\n return parent.operator === \"??\" || parent.operator === \"&&\";\n case \"&&\":\n return parent.operator === \"??\";\n case \"??\":\n return parent.operator !== \"??\";\n }\n}\n\nexport function Identifier(\n node: t.Identifier,\n parent: t.Node,\n tokenContext: number,\n getRawIdentifier: (node: t.Identifier) => string,\n): boolean {\n const parentType = parent.type;\n // 13.15.2 AssignmentExpression RS: Evaluation\n // (fn) = function () {};\n if (\n node.extra?.parenthesized &&\n parentType === \"AssignmentExpression\" &&\n parent.left === node\n ) {\n const rightType = parent.right.type;\n if (\n (rightType === \"FunctionExpression\" || rightType === \"ClassExpression\") &&\n parent.right.id == null\n ) {\n return true;\n }\n }\n\n if (getRawIdentifier && getRawIdentifier(node) !== node.name) {\n return false;\n }\n\n // Non-strict code allows the identifier `let`, but it cannot occur as-is in\n // certain contexts to avoid ambiguity with contextual keyword `let`.\n if (node.name === \"let\") {\n // Some contexts only forbid `let [`, so check if the next token would\n // be the left bracket of a computed member expression.\n const isFollowedByBracket =\n isMemberExpression(parent, {\n object: node,\n computed: true,\n }) ||\n isOptionalMemberExpression(parent, {\n object: node,\n computed: true,\n optional: false,\n });\n if (\n isFollowedByBracket &&\n tokenContext &\n (TokenContext.expressionStatement |\n TokenContext.forInitHead |\n TokenContext.forInHead)\n ) {\n return true;\n }\n return Boolean(tokenContext & TokenContext.forOfHead);\n }\n\n // ECMAScript specifically forbids a for-of loop from starting with the\n // token sequence `for (async of`, because it would be ambiguous with\n // `for (async of => {};;)`, so we need to add extra parentheses.\n return (\n node.name === \"async\" &&\n isForOfStatement(parent, { left: node, await: false })\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAcA,IAAAC,MAAA,GAAAD,OAAA;AAA0C;EAbxCE,qBAAqB;EACrBC,kBAAkB;EAClBC,gBAAgB;EAChBC,gBAAgB;EAChBC,mBAAmB;EACnBC,kBAAkB;EAClBC,eAAe;EACfC,0BAA0B;EAC1BC,iBAAiB;EACjBC;AAAW,IAAAZ,EAAA;AAMb,MAAMa,UAAU,GAAG,IAAIC,GAAG,CAAC,CACzB,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,IAAI,EAAE,CAAC,CAAC,EACT,CAAC,KAAK,EAAE,CAAC,CAAC,EACV,CAAC,GAAG,EAAE,CAAC,CAAC,EACR,CAAC,GAAG,EAAE,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,IAAI;MACZyE,QAAQ,EAAE,IAAI;MACdC,QAAQ,EAAE;IACZ,CAAC,CAAC;IACJ,IACEF,mBAAmB,IACnBxD,YAAY,IACTE,mBAAY,CAACI,mBAAmB,GAC/BJ,mBAAY,CAACyD,WAAW,GACxBzD,mBAAY,CAAC0D,SAAS,CAAC,EAC3B;MACA,OAAO,IAAI;IACb;IACA,OAAO3D,OAAO,CAACD,YAAY,GAAGE,mBAAY,CAAC2D,SAAS,CAAC;EACvD;EAKA,OACE7E,IAAI,CAACuE,IAAI,KAAK,OAAO,IACrBjF,gBAAgB,CAACgB,MAAM,EAAE;IAAEsB,IAAI,EAAE5B,IAAI;IAAE8E,KAAK,EAAE;EAAM,CAAC,CAAC;AAE1D","ignoreList":[]}
@@ -5,17 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _buffer = require("./buffer.js");
8
- var n = require("./node/index.js");
8
+ var _index = require("./node/index.js");
9
+ var n = _index;
9
10
  var _t = require("@babel/types");
10
11
  var _tokenMap = require("./token-map.js");
11
12
  var generatorFunctions = require("./generators/index.js");
13
+ var _deprecated = require("./generators/deprecated.js");
12
14
  const {
13
15
  isExpression,
14
16
  isFunction,
15
17
  isStatement,
16
18
  isClassBody,
17
19
  isTSInterfaceBody,
18
- isTSEnumDeclaration
20
+ isTSEnumMember
19
21
  } = _t;
20
22
  const SCIENTIFIC_NOTATION = /e/i;
21
23
  const ZERO_DECIMAL_INTEGER = /\.0+$/;
@@ -29,8 +31,7 @@ const {
29
31
  } = n;
30
32
  class Printer {
31
33
  constructor(format, map, tokens, originalCode) {
32
- this.inForStatementInit = false;
33
- this.tokenContext = 0;
34
+ this.tokenContext = _index.TokenContext.normal;
34
35
  this._tokens = null;
35
36
  this._originalCode = null;
36
37
  this._currentNode = null;
@@ -59,23 +60,29 @@ class Printer {
59
60
  this._buf = new _buffer.default(map, format.indent.style[0]);
60
61
  }
61
62
  enterForStatementInit() {
62
- if (this.inForStatementInit) return () => {};
63
- this.inForStatementInit = true;
64
- return () => {
65
- this.inForStatementInit = false;
66
- };
63
+ this.tokenContext |= _index.TokenContext.forInitHead | _index.TokenContext.forInOrInitHeadAccumulate;
64
+ return () => this.tokenContext = _index.TokenContext.normal;
65
+ }
66
+ enterForXStatementInit(isForOf) {
67
+ if (isForOf) {
68
+ this.tokenContext |= _index.TokenContext.forOfHead;
69
+ return null;
70
+ } else {
71
+ this.tokenContext |= _index.TokenContext.forInHead | _index.TokenContext.forInOrInitHeadAccumulate;
72
+ return () => this.tokenContext = _index.TokenContext.normal;
73
+ }
67
74
  }
68
75
  enterDelimited() {
69
- const oldInForStatementInit = this.inForStatementInit;
76
+ const oldTokenContext = this.tokenContext;
70
77
  const oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode;
71
- if (oldInForStatementInit === false && oldNoLineTerminatorAfterNode === null) {
78
+ if (!(oldTokenContext & _index.TokenContext.forInOrInitHeadAccumulate) && oldNoLineTerminatorAfterNode === null) {
72
79
  return () => {};
73
80
  }
74
- this.inForStatementInit = false;
75
81
  this._noLineTerminatorAfterNode = null;
82
+ this.tokenContext = _index.TokenContext.normal;
76
83
  return () => {
77
- this.inForStatementInit = oldInForStatementInit;
78
84
  this._noLineTerminatorAfterNode = oldNoLineTerminatorAfterNode;
85
+ this.tokenContext = oldTokenContext;
79
86
  };
80
87
  }
81
88
  generate(ast) {
@@ -151,7 +158,7 @@ class Printer {
151
158
  }
152
159
  }
153
160
  word(str, noLineTerminatorAfter = false) {
154
- this.tokenContext = 0;
161
+ this.tokenContext &= _index.TokenContext.forInOrInitHeadAccumulatePassThroughMask;
155
162
  this._maybePrintInnerComments(str);
156
163
  this._maybeAddAuxComment();
157
164
  if (this.tokenMap) this._catchUpToCurrentToken(str);
@@ -174,7 +181,7 @@ class Printer {
174
181
  this._endsWithInteger = Number.isInteger(number) && !isNonDecimalLiteral(str) && !SCIENTIFIC_NOTATION.test(str) && !ZERO_DECIMAL_INTEGER.test(str) && str.charCodeAt(str.length - 1) !== 46;
175
182
  }
176
183
  token(str, maybeNewline = false, occurrenceCount = 0) {
177
- this.tokenContext = 0;
184
+ this.tokenContext &= _index.TokenContext.forInOrInitHeadAccumulatePassThroughMask;
178
185
  this._maybePrintInnerComments(str, occurrenceCount);
179
186
  this._maybeAddAuxComment();
180
187
  if (this.tokenMap) this._catchUpToCurrentToken(str, occurrenceCount);
@@ -187,7 +194,7 @@ class Printer {
187
194
  this._noLineTerminator = false;
188
195
  }
189
196
  tokenChar(char) {
190
- this.tokenContext = 0;
197
+ this.tokenContext &= _index.TokenContext.forInOrInitHeadAccumulatePassThroughMask;
191
198
  const str = String.fromCharCode(char);
192
199
  this._maybePrintInnerComments(str);
193
200
  this._maybeAddAuxComment();
@@ -367,7 +374,7 @@ class Printer {
367
374
  this._insideAux = node.loc == null;
368
375
  this._maybeAddAuxComment(this._insideAux && !oldInAux);
369
376
  const parenthesized = (_node$extra = node.extra) == null ? void 0 : _node$extra.parenthesized;
370
- let shouldPrintParens = parenthesized && format.preserveFormat || parenthesized && format.retainFunctionParens && nodeType === "FunctionExpression" || needsParens(node, parent, this.tokenContext, this.inForStatementInit, format.preserveFormat ? this._boundGetRawIdentifier : undefined);
377
+ let shouldPrintParens = parenthesized && format.preserveFormat || parenthesized && format.retainFunctionParens && nodeType === "FunctionExpression" || needsParens(node, parent, this.tokenContext, format.preserveFormat ? this._boundGetRawIdentifier : undefined);
371
378
  if (!shouldPrintParens && parenthesized && (_node$leadingComments = node.leadingComments) != null && _node$leadingComments.length && node.leadingComments[0].type === "CommentBlock") {
372
379
  const parentType = parent == null ? void 0 : parent.type;
373
380
  switch (parentType) {
@@ -390,7 +397,7 @@ class Printer {
390
397
  indentParenthesized = true;
391
398
  }
392
399
  let oldNoLineTerminatorAfterNode;
393
- let oldInForStatementInitWasTrue;
400
+ let oldTokenContext;
394
401
  if (!shouldPrintParens) {
395
402
  noLineTerminatorAfter || (noLineTerminatorAfter = parent && this._noLineTerminatorAfterNode === parent && n.isLastChild(parent, node));
396
403
  if (noLineTerminatorAfter) {
@@ -407,9 +414,9 @@ class Printer {
407
414
  this.tokenChar(40);
408
415
  if (indentParenthesized) this.indent();
409
416
  this._endsWithInnerRaw = false;
410
- if (this.inForStatementInit) {
411
- oldInForStatementInitWasTrue = true;
412
- this.inForStatementInit = false;
417
+ if (this.tokenContext & _index.TokenContext.forInOrInitHeadAccumulate) {
418
+ oldTokenContext = this.tokenContext;
419
+ this.tokenContext = _index.TokenContext.normal;
413
420
  }
414
421
  oldNoLineTerminatorAfterNode = this._noLineTerminatorAfterNode;
415
422
  this._noLineTerminatorAfterNode = null;
@@ -426,7 +433,7 @@ class Printer {
426
433
  }
427
434
  this.tokenChar(41);
428
435
  this._noLineTerminator = noLineTerminatorAfter;
429
- if (oldInForStatementInitWasTrue) this.inForStatementInit = true;
436
+ if (oldTokenContext) this.tokenContext = oldTokenContext;
430
437
  } else if (noLineTerminatorAfter && !this._noLineTerminator) {
431
438
  this._noLineTerminator = true;
432
439
  this._printTrailingComments(node, parent);
@@ -739,7 +746,7 @@ class Printer {
739
746
  }
740
747
  if (len === 1) {
741
748
  const singleLine = comment.loc ? comment.loc.start.line === comment.loc.end.line : !HAS_NEWLINE.test(comment.value);
742
- const shouldSkipNewline = singleLine && !isStatement(node) && !isClassBody(parent) && !isTSInterfaceBody(parent) && !isTSEnumDeclaration(parent);
749
+ const shouldSkipNewline = singleLine && !isStatement(node) && !isClassBody(parent) && !isTSInterfaceBody(parent) && !isTSEnumMember(node);
743
750
  if (type === 0) {
744
751
  this._printComment(comment, shouldSkipNewline && node.type !== "ObjectExpression" || singleLine && isFunction(parent, {
745
752
  body: node
@@ -763,7 +770,7 @@ class Printer {
763
770
  }
764
771
  Object.assign(Printer.prototype, generatorFunctions);
765
772
  {
766
- Printer.prototype.Noop = function Noop() {};
773
+ (0, _deprecated.addDeprecatedGenerators)(Printer);
767
774
  }
768
775
  var _default = exports.default = Printer;
769
776
  function commaSeparator(occurrenceCount, last) {