@quilted/create 0.2.44 → 0.2.45

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 (278) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/esm/_virtual/index3.mjs +1 -1
  3. package/build/esm/_virtual/index7.mjs +2 -2
  4. package/build/esm/_virtual/index8.mjs +2 -2
  5. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.mjs +2 -2
  6. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.mjs +12 -10
  7. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.mjs +1 -2
  8. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.mjs +9 -9
  9. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.mjs +14 -14
  10. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.mjs +4 -4
  11. package/build/esm/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.mjs +9 -3
  12. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +1 -3
  13. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.mjs +39 -8
  14. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.mjs +40 -10
  15. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.mjs +2 -2
  16. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.mjs +101 -0
  17. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.mjs +1 -6
  18. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.mjs +6 -6
  19. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.mjs +7 -5
  20. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.mjs +1 -1
  21. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.mjs +79 -0
  22. package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.mjs +69 -29
  23. package/build/esm/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.mjs +4 -4
  24. package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +2 -2
  25. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +9 -3
  26. package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +3 -5
  27. package/build/esm/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.mjs +9 -3
  28. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2448 -3000
  29. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs +6611 -0
  30. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +22 -0
  31. package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/yaml.mjs +1008 -1007
  32. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs +3878 -0
  33. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.mjs +0 -1
  34. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
  35. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.mjs +0 -1
  36. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
  37. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.mjs +67 -0
  38. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.mjs +3 -0
  39. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.mjs +13 -3
  40. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +8 -4
  41. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.mjs +1 -1
  42. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +12 -5
  43. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +6 -2
  44. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +10 -7
  45. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +11 -3
  46. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +14 -1
  47. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.mjs +20 -7
  48. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +2 -2
  49. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.mjs +13 -10
  50. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.mjs +1 -1
  51. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.mjs +1 -0
  52. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.mjs +4 -4
  53. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.mjs +10 -3
  54. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.mjs +1 -1
  55. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.mjs +7 -0
  56. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.mjs +9 -2
  57. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.mjs +2 -2
  58. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.mjs +44 -0
  59. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.mjs +1 -1
  60. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.mjs +2 -1
  61. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +28 -4
  62. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +22 -4
  63. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +53 -0
  64. package/build/esm/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.mjs → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.mjs} +1 -14
  65. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.mjs +1 -1
  66. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.mjs +1 -0
  67. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.mjs +34 -21
  68. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.mjs +16 -9
  69. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.mjs +2 -0
  70. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.mjs +2 -3
  71. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.mjs +16 -0
  72. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.mjs +16 -0
  73. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.mjs +1 -1
  74. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.mjs +1 -1
  75. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.mjs +20 -9
  76. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +3 -6
  77. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +1 -1
  78. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +1 -1
  79. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +48 -0
  80. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +10 -9
  81. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +4 -2
  82. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +2 -1
  83. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +15 -14
  84. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +2 -4
  85. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +19 -10
  86. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.mjs +8 -2
  87. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +9 -17
  88. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +1 -1
  89. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +40 -17
  90. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +40 -20
  91. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.mjs +1 -1
  92. package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs +2 -1
  93. package/build/esm/package.mjs +1 -1
  94. package/build/esm/shared/package-manager.mjs +1 -2
  95. package/build/esm/shared.mjs +1 -3
  96. package/build/esnext/_virtual/index3.esnext +1 -1
  97. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +1 -1
  98. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +1 -1
  99. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +1 -1
  100. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +1 -1
  101. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +1 -1
  102. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +1 -1
  103. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/index.esnext +2 -2
  104. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/compile.esnext +10 -9
  105. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/constants.esnext +1 -1
  106. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/expand.esnext +9 -9
  107. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/parse.esnext +14 -14
  108. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/stringify.esnext +4 -4
  109. package/build/esnext/node_modules/.pnpm/{braces@3.0.2 → braces@3.0.3}/node_modules/braces/lib/utils.esnext +9 -3
  110. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/index.esnext +35 -4
  111. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/managers/tasks.esnext +14 -2
  112. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.esnext +92 -0
  113. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/matcher.esnext +1 -2
  114. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/settings.esnext +3 -2
  115. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.esnext +58 -0
  116. package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/pattern.esnext +27 -6
  117. package/build/esnext/node_modules/.pnpm/{fill-range@7.0.1 → fill-range@7.1.1}/node_modules/fill-range/index.esnext +4 -4
  118. package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +2 -2
  119. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +6 -4
  120. package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +3 -3
  121. package/build/esnext/node_modules/.pnpm/{micromatch@4.0.5 → micromatch@4.0.8}/node_modules/micromatch/index.esnext +8 -3
  122. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/babel.esnext +6956 -0
  123. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.esnext +4320 -0
  124. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +12888 -0
  125. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.esnext +4156 -0
  126. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.esnext +2369 -0
  127. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/compose/compose-collection.esnext +60 -0
  128. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.esnext +2 -0
  129. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.esnext +11 -3
  130. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.esnext +13 -5
  131. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.esnext +1 -1
  132. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.esnext +13 -4
  133. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +6 -2
  134. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.esnext +11 -6
  135. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +12 -3
  136. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +14 -1
  137. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.esnext +20 -9
  138. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.esnext +2 -2
  139. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.esnext +8 -13
  140. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.esnext +1 -1
  141. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.esnext +5 -3
  142. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.esnext +10 -4
  143. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.esnext +1 -1
  144. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.esnext +7 -0
  145. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.esnext +8 -2
  146. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.esnext +2 -2
  147. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.esnext +36 -0
  148. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.esnext +1 -1
  149. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.esnext +2 -1
  150. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +31 -4
  151. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.esnext +20 -4
  152. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +8 -38
  153. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.esnext → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.esnext} +1 -13
  154. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.esnext +1 -1
  155. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.esnext +1 -0
  156. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.esnext +45 -33
  157. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +12 -9
  158. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.esnext +3 -0
  159. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.esnext +2 -3
  160. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.esnext +17 -0
  161. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.esnext +17 -0
  162. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.esnext +1 -1
  163. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.esnext +1 -1
  164. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.esnext +22 -11
  165. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.esnext +3 -6
  166. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.esnext +1 -1
  167. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.esnext +1 -1
  168. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.esnext +50 -0
  169. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +10 -9
  170. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +4 -3
  171. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.esnext +2 -0
  172. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +15 -14
  173. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.esnext +2 -2
  174. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.esnext +20 -10
  175. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.esnext +9 -2
  176. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.esnext +20 -28
  177. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.esnext +1 -1
  178. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.esnext +44 -23
  179. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +38 -20
  180. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.esnext +1 -1
  181. package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.esnext +2 -1
  182. package/build/esnext/package.esnext +1 -1
  183. package/build/esnext/shared/package-manager.esnext +1 -1
  184. package/build/esnext/shared.esnext +5 -6
  185. package/build/tsconfig.tsbuildinfo +1 -1
  186. package/build/typescript/shared/package-manager.d.ts.map +1 -1
  187. package/build/typescript/shared.d.ts.map +1 -1
  188. package/package.json +7 -7
  189. package/source/shared/package-manager.ts +0 -1
  190. package/source/shared.ts +1 -2
  191. package/templates/workspace/_nvmrc +1 -1
  192. package/build/esm/_virtual/patterns.mjs +0 -3
  193. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -32
  194. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -76
  195. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -45
  196. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6172
  197. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +0 -29
  198. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +0 -4076
  199. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -58
  200. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.mjs +0 -7
  201. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -83
  202. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -37
  203. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -34
  204. package/build/esnext/_virtual/patterns.esnext +0 -3
  205. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -21
  206. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -71
  207. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -38
  208. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +0 -18
  209. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +0 -37
  210. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +0 -29
  211. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +0 -163
  212. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +0 -36
  213. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.esnext +0 -55
  214. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.esnext +0 -10
  215. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.esnext +0 -41
  216. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.esnext +0 -33
  217. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.mjs +0 -0
  218. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.mjs +0 -0
  219. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.mjs +0 -0
  220. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.mjs +0 -0
  221. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.mjs +0 -0
  222. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.mjs +0 -0
  223. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.mjs +0 -0
  224. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.mjs +0 -0
  225. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.mjs +0 -0
  226. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.mjs +0 -0
  227. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.mjs +0 -0
  228. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.mjs +0 -0
  229. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.mjs +0 -0
  230. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.mjs +0 -0
  231. /package/build/esm/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.mjs +0 -0
  232. /package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.mjs +0 -0
  233. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -0
  234. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -0
  235. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -0
  236. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -0
  237. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -0
  238. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -0
  239. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -0
  240. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -0
  241. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -0
  242. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -0
  243. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -0
  244. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -0
  245. /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -0
  246. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/async.esnext +0 -0
  247. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/deep.esnext +0 -0
  248. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/filters/error.esnext +0 -0
  249. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/matchers/partial.esnext +0 -0
  250. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/provider.esnext +0 -0
  251. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/stream.esnext +0 -0
  252. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/sync.esnext +0 -0
  253. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/providers/transformers/entry.esnext +0 -0
  254. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/async.esnext +0 -0
  255. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/reader.esnext +0 -0
  256. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/stream.esnext +0 -0
  257. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/readers/sync.esnext +0 -0
  258. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/array.esnext +0 -0
  259. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/errno.esnext +0 -0
  260. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/fs.esnext +0 -0
  261. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/index.esnext +0 -0
  262. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/stream.esnext +0 -0
  263. /package/build/esnext/node_modules/.pnpm/{fast-glob@3.2.12 → fast-glob@3.3.3}/node_modules/fast-glob/out/utils/string.esnext +0 -0
  264. /package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.esnext +0 -0
  265. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.esnext +0 -0
  266. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.esnext +0 -0
  267. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.esnext +0 -0
  268. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.esnext +0 -0
  269. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.esnext +0 -0
  270. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.esnext +0 -0
  271. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.esnext +0 -0
  272. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.esnext +0 -0
  273. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.esnext +0 -0
  274. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.esnext +0 -0
  275. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.esnext +0 -0
  276. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.esnext +0 -0
  277. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.esnext +0 -0
  278. /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.esnext +0 -0
@@ -0,0 +1,4320 @@
1
+ var Xa = Object.defineProperty;
2
+ var Ws = (e) => {
3
+ throw TypeError(e);
4
+ };
5
+ var Tr = (e, t) => {
6
+ for (var r in t) Xa(e, r, { get: t[r], enumerable: true });
7
+ };
8
+ var Gs = (e, t, r) => t.has(e) || Ws("Cannot " + r);
9
+ var pt = (e, t, r) => (Gs(e, t, "read from private field"), t.get(e)), Us = (e, t, r) => t.has(e) ? Ws("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ys = (e, t, r, n) => (Gs(e, t, "write to private field"), t.set(e, r), r);
10
+ var js = {};
11
+ Tr(js, { languages: () => cm, options: () => Wa, printers: () => pm });
12
+ var Ns = [{ linguistLanguageId: 183, name: "JavaScript", type: "programming", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", color: "#f1e05a", aliases: ["js", "node"], extensions: [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], filenames: ["Jakefile"], interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], parsers: ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], vscodeLanguageIds: ["javascript", "mongo"] }, { linguistLanguageId: 183, name: "Flow", type: "programming", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", color: "#f1e05a", aliases: [], extensions: [".js.flow"], filenames: [], interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], parsers: ["flow", "babel-flow"], vscodeLanguageIds: ["javascript"] }, { linguistLanguageId: 183, name: "JSX", type: "programming", tmScope: "source.js.jsx", aceMode: "javascript", codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", color: void 0, aliases: void 0, extensions: [".jsx"], filenames: void 0, interpreters: void 0, parsers: ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], vscodeLanguageIds: ["javascriptreact"], group: "JavaScript" }, { linguistLanguageId: 378, name: "TypeScript", type: "programming", color: "#3178c6", aliases: ["ts"], interpreters: ["deno", "ts-node"], extensions: [".ts", ".cts", ".mts"], tmScope: "source.ts", aceMode: "typescript", codemirrorMode: "javascript", codemirrorMimeType: "application/typescript", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescript"] }, { linguistLanguageId: 94901924, name: "TSX", type: "programming", color: "#3178c6", group: "TypeScript", extensions: [".tsx"], tmScope: "source.tsx", aceMode: "javascript", codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescriptreact"] }];
13
+ var _s = {};
14
+ Tr(_s, { canAttachComment: () => dp, embed: () => ti, experimentalFeatures: () => nm, getCommentChildNodes: () => xp, getVisitorKeys: () => Sr, handleComments: () => Qn, insertPragma: () => mi, isBlockComment: () => ee, isGap: () => hp, massageAstNode: () => du, print: () => va, printComment: () => wu, willPrintOwnComments: () => zn });
15
+ var Ha = (e, t, r, n) => {
16
+ if (!(e && t == null)) return t.replaceAll ? t.replaceAll(r, n) : r.global ? t.replace(r, n) : t.split(r).join(n);
17
+ }, N = Ha;
18
+ var Va = (e, t, r) => {
19
+ if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[r < 0 ? t.length + r : r] : t.at(r);
20
+ }, M = Va;
21
+ function $a(e) {
22
+ return e !== null && typeof e == "object";
23
+ }
24
+ var Xs = $a;
25
+ function* Ka(e, t) {
26
+ let { getVisitorKeys: r, filter: n = () => true } = t, s = (u) => Xs(u) && n(u);
27
+ for (let u of r(e)) {
28
+ let i = e[u];
29
+ if (Array.isArray(i)) for (let a of i) s(a) && (yield a);
30
+ else s(i) && (yield i);
31
+ }
32
+ }
33
+ function* Qa(e, t) {
34
+ let r = [e];
35
+ for (let n = 0; n < r.length; n++) {
36
+ let s = r[n];
37
+ for (let u of Ka(s, t)) yield u, r.push(u);
38
+ }
39
+ }
40
+ function Hs(e, { getVisitorKeys: t, predicate: r }) {
41
+ for (let n of Qa(e, { getVisitorKeys: t })) if (r(n)) return true;
42
+ return false;
43
+ }
44
+ var Vs = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
45
+ function $s(e) {
46
+ return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
47
+ }
48
+ function Ks(e) {
49
+ return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9776 && e <= 9783 || e >= 9800 && e <= 9811 || e === 9855 || e >= 9866 && e <= 9871 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12773 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101631 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e >= 119552 && e <= 119638 || e >= 119648 && e <= 119670 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129673 || e >= 129679 && e <= 129734 || e >= 129742 && e <= 129756 || e >= 129759 && e <= 129769 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
50
+ }
51
+ var Qs = (e) => !($s(e) || Ks(e));
52
+ var za = /[^\x20-\x7F]/u;
53
+ function Za(e) {
54
+ if (!e) return 0;
55
+ if (!za.test(e)) return e.length;
56
+ e = e.replace(Vs(), " ");
57
+ let t = 0;
58
+ for (let r of e) {
59
+ let n = r.codePointAt(0);
60
+ n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (t += Qs(n) ? 1 : 2);
61
+ }
62
+ return t;
63
+ }
64
+ var tt = Za;
65
+ function dr(e) {
66
+ return (t, r, n) => {
67
+ let s = !!(n != null && n.backwards);
68
+ if (r === false) return false;
69
+ let { length: u } = t, i = r;
70
+ for (; i >= 0 && i < u; ) {
71
+ let a = t.charAt(i);
72
+ if (e instanceof RegExp) {
73
+ if (!e.test(a)) return i;
74
+ } else if (!e.includes(a)) return i;
75
+ s ? i-- : i++;
76
+ }
77
+ return i === -1 || i === u ? i : false;
78
+ };
79
+ }
80
+ var Ye = dr(" "), zs = dr(",; "), Zs = dr(/[^\n\r]/u);
81
+ function eo(e, t, r) {
82
+ let n = !!(r != null && r.backwards);
83
+ if (t === false) return false;
84
+ let s = e.charAt(t);
85
+ if (n) {
86
+ if (e.charAt(t - 1) === "\r" && s === `
87
+ `) return t - 2;
88
+ if (s === `
89
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return t - 1;
90
+ } else {
91
+ if (s === "\r" && e.charAt(t + 1) === `
92
+ `) return t + 2;
93
+ if (s === `
94
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return t + 1;
95
+ }
96
+ return t;
97
+ }
98
+ var Ne = eo;
99
+ function to(e, t, r = {}) {
100
+ let n = Ye(e, r.backwards ? t - 1 : t, r), s = Ne(e, n, r);
101
+ return n !== s;
102
+ }
103
+ var Z = to;
104
+ function ro(e, t) {
105
+ if (t === false) return false;
106
+ if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
107
+ for (let r = t + 2; r < e.length; ++r) if (e.charAt(r) === "*" && e.charAt(r + 1) === "/") return r + 2;
108
+ }
109
+ return t;
110
+ }
111
+ var Ot = ro;
112
+ function no(e, t) {
113
+ return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? Zs(e, t) : t;
114
+ }
115
+ var _t = no;
116
+ function so(e, t) {
117
+ let r = null, n = t;
118
+ for (; n !== r; ) r = n, n = zs(e, n), n = Ot(e, n), n = Ye(e, n);
119
+ return n = _t(e, n), n = Ne(e, n), n !== false && Z(e, n);
120
+ }
121
+ var vt = so;
122
+ function uo(e) {
123
+ return Array.isArray(e) && e.length > 0;
124
+ }
125
+ var O = uo;
126
+ var eu = new Proxy(() => {
127
+ }, { get: () => eu }), jt = eu;
128
+ var xr = "'", tu = '"';
129
+ function io(e, t) {
130
+ let r = t === true || t === xr ? xr : tu, n = r === xr ? tu : xr, s = 0, u = 0;
131
+ for (let i of e) i === r ? s++ : i === n && u++;
132
+ return s > u ? n : r;
133
+ }
134
+ var hr = io;
135
+ function ao(e, t, r) {
136
+ let n = t === '"' ? "'" : '"', u = N(false, e, /\\(.)|(["'])/gsu, (i, a, o) => a === n ? a : o === t ? "\\" + o : o || (r && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a) ? a : "\\" + a));
137
+ return t + u + t;
138
+ }
139
+ var ru = ao;
140
+ function oo(e, t) {
141
+ jt(/^(?<quote>["']).*\k<quote>$/su.test(e));
142
+ let r = e.slice(1, -1), n = t.parser === "json" || t.parser === "jsonc" || t.parser === "json5" && t.quoteProps === "preserve" && !t.singleQuote ? '"' : t.__isInHtmlAttribute ? "'" : hr(r, t.singleQuote);
143
+ return e.charAt(0) === n ? e : ru(r, n, false);
144
+ }
145
+ var rt = oo;
146
+ function q(e) {
147
+ var n, s, u;
148
+ let t = ((n = e.range) == null ? void 0 : n[0]) ?? e.start, r = (u = ((s = e.declaration) == null ? void 0 : s.decorators) ?? e.decorators) == null ? void 0 : u[0];
149
+ return r ? Math.min(q(r), t) : t;
150
+ }
151
+ function k(e) {
152
+ var t;
153
+ return ((t = e.range) == null ? void 0 : t[1]) ?? e.end;
154
+ }
155
+ function bt(e, t) {
156
+ let r = q(e);
157
+ return Number.isInteger(r) && r === q(t);
158
+ }
159
+ function po(e, t) {
160
+ let r = k(e);
161
+ return Number.isInteger(r) && r === k(t);
162
+ }
163
+ function nu(e, t) {
164
+ return bt(e, t) && po(e, t);
165
+ }
166
+ var er = null;
167
+ function tr(e) {
168
+ if (er !== null && typeof er.property) {
169
+ let t = er;
170
+ return er = tr.prototype = null, t;
171
+ }
172
+ return er = tr.prototype = e ?? /* @__PURE__ */ Object.create(null), new tr();
173
+ }
174
+ var co = 10;
175
+ for (let e = 0; e <= co; e++) tr();
176
+ function Ln(e) {
177
+ return tr(e);
178
+ }
179
+ function lo(e, t = "type") {
180
+ Ln(e);
181
+ function r(n) {
182
+ let s = n[t], u = e[s];
183
+ if (!Array.isArray(u)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
184
+ return u;
185
+ }
186
+ return r;
187
+ }
188
+ var gr = lo;
189
+ var su = { ArrayExpression: ["elements"], AssignmentExpression: ["left", "right"], BinaryExpression: ["left", "right"], InterpreterDirective: [], Directive: ["value"], DirectiveLiteral: [], BlockStatement: ["directives", "body"], BreakStatement: ["label"], CallExpression: ["callee", "arguments", "typeParameters", "typeArguments"], CatchClause: ["param", "body"], ConditionalExpression: ["test", "consequent", "alternate"], ContinueStatement: ["label"], DebuggerStatement: [], DoWhileStatement: ["body", "test"], EmptyStatement: [], ExpressionStatement: ["expression"], File: ["program"], ForInStatement: ["left", "right", "body"], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: ["id", "typeParameters", "params", "predicate", "returnType", "body"], FunctionExpression: ["id", "typeParameters", "params", "returnType", "body"], Identifier: ["typeAnnotation", "decorators"], IfStatement: ["test", "consequent", "alternate"], LabeledStatement: ["label", "body"], StringLiteral: [], NumericLiteral: [], NullLiteral: [], BooleanLiteral: [], RegExpLiteral: [], LogicalExpression: ["left", "right"], MemberExpression: ["object", "property"], NewExpression: ["callee", "arguments", "typeParameters", "typeArguments"], Program: ["directives", "body"], ObjectExpression: ["properties"], ObjectMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectProperty: ["key", "value", "decorators"], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: ["argument"], SequenceExpression: ["expressions"], ParenthesizedExpression: ["expression"], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], ThisExpression: [], ThrowStatement: ["argument"], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: ["argument"], UpdateExpression: ["argument"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], ClassBody: ["body"], ClassExpression: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ClassDeclaration: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: ["declaration", "specifiers", "source", "attributes"], ExportSpecifier: ["local", "exported"], ForOfStatement: ["left", "right", "body"], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["imported", "local"], ImportExpression: ["source", "options"], MetaProperty: ["meta", "property"], ClassMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectPattern: ["properties", "typeAnnotation", "decorators"], SpreadElement: ["argument"], Super: [], TaggedTemplateExpression: ["tag", "typeParameters", "quasi", "typeArguments"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], YieldExpression: ["argument"], AwaitExpression: ["argument"], BigIntLiteral: [], ExportNamespaceSpecifier: ["exported"], OptionalMemberExpression: ["object", "property"], OptionalCallExpression: ["callee", "arguments", "typeParameters", "typeArguments"], ClassProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassAccessorProperty: ["decorators", "key", "typeAnnotation", "value"], ClassPrivateProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassPrivateMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], PrivateName: ["id"], StaticBlock: ["body"], AnyTypeAnnotation: [], ArrayTypeAnnotation: ["elementType"], BooleanTypeAnnotation: [], BooleanLiteralTypeAnnotation: [], NullLiteralTypeAnnotation: [], ClassImplements: ["id", "typeParameters"], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareFunction: ["id", "predicate"], DeclareInterface: ["id", "typeParameters", "extends", "body"], DeclareModule: ["id", "body"], DeclareModuleExports: ["typeAnnotation"], DeclareTypeAlias: ["id", "typeParameters", "right"], DeclareOpaqueType: ["id", "typeParameters", "supertype"], DeclareVariable: ["id"], DeclareExportDeclaration: ["declaration", "specifiers", "source", "attributes"], DeclareExportAllDeclaration: ["source", "attributes"], DeclaredPredicate: ["value"], ExistsTypeAnnotation: [], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: ["name", "typeAnnotation"], GenericTypeAnnotation: ["id", "typeParameters"], InferredPredicate: [], InterfaceExtends: ["id", "typeParameters"], InterfaceDeclaration: ["id", "typeParameters", "extends", "body"], InterfaceTypeAnnotation: ["extends", "body"], IntersectionTypeAnnotation: ["types"], MixedTypeAnnotation: [], EmptyTypeAnnotation: [], NullableTypeAnnotation: ["typeAnnotation"], NumberLiteralTypeAnnotation: [], NumberTypeAnnotation: [], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeCallProperty: ["value"], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: ["argument"], OpaqueType: ["id", "typeParameters", "supertype", "impltype"], QualifiedTypeIdentifier: ["qualification", "id"], StringLiteralTypeAnnotation: [], StringTypeAnnotation: [], SymbolTypeAnnotation: [], ThisTypeAnnotation: [], TupleTypeAnnotation: ["types", "elementTypes"], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeAlias: ["id", "typeParameters", "right"], TypeAnnotation: ["typeAnnotation"], TypeCastExpression: ["expression", "typeAnnotation"], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: ["params"], TypeParameterInstantiation: ["params"], UnionTypeAnnotation: ["types"], Variance: [], VoidTypeAnnotation: [], EnumDeclaration: ["id", "body"], EnumBooleanBody: ["members"], EnumNumberBody: ["members"], EnumStringBody: ["members"], EnumSymbolBody: ["members"], EnumBooleanMember: ["id", "init"], EnumNumberMember: ["id", "init"], EnumStringMember: ["id", "init"], EnumDefaultedMember: ["id"], IndexedAccessType: ["objectType", "indexType"], OptionalIndexedAccessType: ["objectType", "indexType"], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: [], JSXExpressionContainer: ["expression"], JSXSpreadChild: ["expression"], JSXIdentifier: [], JSXMemberExpression: ["object", "property"], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeParameters", "typeArguments", "attributes"], JSXSpreadAttribute: ["argument"], JSXText: [], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXOpeningFragment: [], JSXClosingFragment: [], Noop: [], Placeholder: [], V8IntrinsicIdentifier: [], ArgumentPlaceholder: [], BindExpression: ["object", "callee"], ImportAttribute: ["key", "value"], Decorator: ["expression"], DoExpression: ["body"], ExportDefaultSpecifier: ["exported"], RecordExpression: ["properties"], TupleExpression: ["elements"], ModuleExpression: ["body"], TopicReference: [], PipelineTopicExpression: ["expression"], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: [], TSParameterProperty: ["parameter", "decorators"], TSDeclareFunction: ["id", "typeParameters", "params", "returnType", "body"], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSQualifiedName: ["left", "right"], TSCallSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSPropertySignature: ["key", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSIndexSignature: ["parameters", "typeAnnotation"], TSAnyKeyword: [], TSBooleanKeyword: [], TSBigIntKeyword: [], TSIntrinsicKeyword: [], TSNeverKeyword: [], TSNullKeyword: [], TSNumberKeyword: [], TSObjectKeyword: [], TSStringKeyword: [], TSSymbolKeyword: [], TSUndefinedKeyword: [], TSUnknownKeyword: [], TSVoidKeyword: [], TSThisType: [], TSFunctionType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructorType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSTypeReference: ["typeName", "typeParameters", "typeArguments"], TSTypePredicate: ["parameterName", "typeAnnotation"], TSTypeQuery: ["exprName", "typeParameters", "typeArguments"], TSTypeLiteral: ["members"], TSArrayType: ["elementType"], TSTupleType: ["elementTypes"], TSOptionalType: ["typeAnnotation"], TSRestType: ["typeAnnotation"], TSNamedTupleMember: ["label", "elementType"], TSUnionType: ["types"], TSIntersectionType: ["types"], TSConditionalType: ["checkType", "extendsType", "trueType", "falseType"], TSInferType: ["typeParameter"], TSParenthesizedType: ["typeAnnotation"], TSTypeOperator: ["typeAnnotation"], TSIndexedAccessType: ["objectType", "indexType"], TSMappedType: ["typeParameter", "nameType", "typeAnnotation"], TSTemplateLiteralType: ["quasis", "types"], TSLiteralType: ["literal"], TSExpressionWithTypeArguments: ["expression", "typeParameters"], TSInterfaceDeclaration: ["id", "typeParameters", "extends", "body"], TSInterfaceBody: ["body"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSInstantiationExpression: ["expression", "typeParameters", "typeArguments"], TSAsExpression: ["expression", "typeAnnotation"], TSSatisfiesExpression: ["expression", "typeAnnotation"], TSTypeAssertion: ["typeAnnotation", "expression"], TSEnumBody: ["members"], TSEnumDeclaration: ["id", "members"], TSEnumMember: ["id", "initializer"], TSModuleDeclaration: ["id", "body"], TSModuleBlock: ["body"], TSImportType: ["argument", "options", "qualifier", "typeParameters", "typeArguments"], TSImportEqualsDeclaration: ["id", "moduleReference"], TSExternalModuleReference: ["expression"], TSNonNullExpression: ["expression"], TSExportAssignment: ["expression"], TSNamespaceExportDeclaration: ["id"], TSTypeAnnotation: ["typeAnnotation"], TSTypeParameterInstantiation: ["params"], TSTypeParameterDeclaration: ["params"], TSTypeParameter: ["constraint", "default", "name"], ChainExpression: ["expression"], ExperimentalRestProperty: ["argument"], ExperimentalSpreadProperty: ["argument"], Literal: [], MethodDefinition: ["decorators", "key", "value"], PrivateIdentifier: [], Property: ["key", "value"], PropertyDefinition: ["decorators", "key", "typeAnnotation", "value", "variance"], AccessorProperty: ["decorators", "key", "typeAnnotation", "value"], TSAbstractAccessorProperty: ["decorators", "key", "typeAnnotation"], TSAbstractKeyword: [], TSAbstractMethodDefinition: ["key", "value"], TSAbstractPropertyDefinition: ["decorators", "key", "typeAnnotation"], TSAsyncKeyword: [], TSClassImplements: ["expression", "typeArguments", "typeParameters"], TSDeclareKeyword: [], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSExportKeyword: [], TSInterfaceHeritage: ["expression", "typeArguments", "typeParameters"], TSPrivateKeyword: [], TSProtectedKeyword: [], TSPublicKeyword: [], TSReadonlyKeyword: [], TSStaticKeyword: [], AsConstExpression: ["expression"], AsExpression: ["expression", "typeAnnotation"], BigIntLiteralTypeAnnotation: [], BigIntTypeAnnotation: [], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: ["name", "typeAnnotation"], ConditionalTypeAnnotation: ["checkType", "extendsType", "trueType", "falseType"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclareEnum: ["id", "body"], DeclareHook: ["id"], DeclareNamespace: ["id", "body"], EnumBigIntBody: ["members"], EnumBigIntMember: ["id", "init"], HookDeclaration: ["id", "params", "body", "typeParameters", "returnType"], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], InferTypeAnnotation: ["typeParameter"], KeyofTypeAnnotation: ["argument"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], QualifiedTypeofIdentifier: ["qualification", "id"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeOperator: ["typeAnnotation"], TypePredicate: ["parameterName", "typeAnnotation", "asserts"], NGRoot: ["node"], NGPipeExpression: ["left", "right", "arguments"], NGChainedExpression: ["expressions"], NGEmptyExpression: [], NGMicrosyntax: ["body"], NGMicrosyntaxKey: [], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: ["key", "value"], NGMicrosyntaxAs: ["key", "alias"], JsExpressionRoot: ["node"], JsonRoot: ["node"], TSJSDocAllType: [], TSJSDocUnknownType: [], TSJSDocNullableType: ["typeAnnotation"], TSJSDocNonNullableType: ["typeAnnotation"], NeverTypeAnnotation: [], UndefinedTypeAnnotation: [], UnknownTypeAnnotation: [], SatisfiesExpression: ["expression", "typeAnnotation"] };
190
+ var mo = gr(su), Sr = mo;
191
+ function yo(e) {
192
+ let t = new Set(e);
193
+ return (r) => t.has(r == null ? void 0 : r.type);
194
+ }
195
+ var R = yo;
196
+ var Do = R(["Block", "CommentBlock", "MultiLine"]), ee = Do;
197
+ var fo = R(["AnyTypeAnnotation", "ThisTypeAnnotation", "NumberTypeAnnotation", "VoidTypeAnnotation", "BooleanTypeAnnotation", "BigIntTypeAnnotation", "SymbolTypeAnnotation", "StringTypeAnnotation", "NeverTypeAnnotation", "UndefinedTypeAnnotation", "UnknownTypeAnnotation", "EmptyTypeAnnotation", "MixedTypeAnnotation"]), Br = fo;
198
+ function Eo(e, t) {
199
+ let r = t.split(".");
200
+ for (let n = r.length - 1; n >= 0; n--) {
201
+ let s = r[n];
202
+ if (n === 0) return e.type === "Identifier" && e.name === s;
203
+ if (e.type !== "MemberExpression" || e.optional || e.computed || e.property.type !== "Identifier" || e.property.name !== s) return false;
204
+ e = e.object;
205
+ }
206
+ }
207
+ function Fo(e, t) {
208
+ return t.some((r) => Eo(e, r));
209
+ }
210
+ var uu = Fo;
211
+ function Co({ type: e }) {
212
+ return e.startsWith("TS") && e.endsWith("Keyword");
213
+ }
214
+ var br = Co;
215
+ function nr(e, t) {
216
+ return t(e) || Hs(e, { getVisitorKeys: Sr, predicate: t });
217
+ }
218
+ function Rt(e) {
219
+ return e.type === "AssignmentExpression" || e.type === "BinaryExpression" || e.type === "LogicalExpression" || e.type === "NGPipeExpression" || e.type === "ConditionalExpression" || L(e) || W(e) || e.type === "SequenceExpression" || e.type === "TaggedTemplateExpression" || e.type === "BindExpression" || e.type === "UpdateExpression" && !e.prefix || Ae(e) || e.type === "TSNonNullExpression" || e.type === "ChainExpression";
220
+ }
221
+ function ou(e) {
222
+ return e.expressions ? e.expressions[0] : e.left ?? e.test ?? e.callee ?? e.object ?? e.tag ?? e.argument ?? e.expression;
223
+ }
224
+ function kr(e) {
225
+ if (e.expressions) return ["expressions", 0];
226
+ if (e.left) return ["left"];
227
+ if (e.test) return ["test"];
228
+ if (e.object) return ["object"];
229
+ if (e.callee) return ["callee"];
230
+ if (e.tag) return ["tag"];
231
+ if (e.argument) return ["argument"];
232
+ if (e.expression) return ["expression"];
233
+ throw new Error("Unexpected node has no left side.");
234
+ }
235
+ var Ct = R(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]), pu = R(["ExportDefaultDeclaration", "DeclareExportDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportAllDeclaration"]), Y = R(["ArrayExpression", "TupleExpression"]), se = R(["ObjectExpression", "RecordExpression"]);
236
+ function cu(e) {
237
+ return e.type === "LogicalExpression" && e.operator === "??";
238
+ }
239
+ function Fe(e) {
240
+ return e.type === "NumericLiteral" || e.type === "Literal" && typeof e.value == "number";
241
+ }
242
+ function jn(e) {
243
+ return e.type === "UnaryExpression" && (e.operator === "+" || e.operator === "-") && Fe(e.argument);
244
+ }
245
+ function te(e) {
246
+ return !!(e && (e.type === "StringLiteral" || e.type === "Literal" && typeof e.value == "string"));
247
+ }
248
+ function Mn(e) {
249
+ return e.type === "RegExpLiteral" || e.type === "Literal" && !!e.regex;
250
+ }
251
+ var Ir = R(["Literal", "BooleanLiteral", "BigIntLiteral", "DirectiveLiteral", "NullLiteral", "NumericLiteral", "RegExpLiteral", "StringLiteral"]), Ao = R(["Identifier", "ThisExpression", "Super", "PrivateName", "PrivateIdentifier"]), Me = R(["ObjectTypeAnnotation", "TSTypeLiteral", "TSMappedType"]), Mt = R(["FunctionExpression", "ArrowFunctionExpression"]);
252
+ function To(e) {
253
+ return e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && e.body.type === "BlockStatement";
254
+ }
255
+ function wn(e) {
256
+ return L(e) && e.callee.type === "Identifier" && ["async", "inject", "fakeAsync", "waitForAsync"].includes(e.callee.name);
257
+ }
258
+ var X = R(["JSXElement", "JSXFragment"]);
259
+ function Pt(e) {
260
+ return e.method && e.kind === "init" || e.kind === "get" || e.kind === "set";
261
+ }
262
+ function Lr(e) {
263
+ return (e.type === "ObjectTypeProperty" || e.type === "ObjectTypeInternalSlot") && !e.static && !e.method && e.kind !== "get" && e.kind !== "set" && e.value.type === "FunctionTypeAnnotation";
264
+ }
265
+ function lu(e) {
266
+ return (e.type === "TypeAnnotation" || e.type === "TSTypeAnnotation") && e.typeAnnotation.type === "FunctionTypeAnnotation" && !e.static && !bt(e, e.typeAnnotation);
267
+ }
268
+ var De = R(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
269
+ function At(e) {
270
+ return W(e) || e.type === "BindExpression" && !!e.object;
271
+ }
272
+ var xo = R(["TSThisType", "NullLiteralTypeAnnotation", "BooleanLiteralTypeAnnotation", "StringLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "TSLiteralType", "TSTemplateLiteralType"]);
273
+ function Jt(e) {
274
+ return br(e) || Br(e) || xo(e) || (e.type === "GenericTypeAnnotation" || e.type === "TSTypeReference") && !e.typeParameters && !e.typeArguments;
275
+ }
276
+ function ho(e) {
277
+ return e.type === "Identifier" && (e.name === "beforeEach" || e.name === "beforeAll" || e.name === "afterEach" || e.name === "afterAll");
278
+ }
279
+ var go = ["it", "it.only", "it.skip", "describe", "describe.only", "describe.skip", "test", "test.only", "test.skip", "test.step", "test.describe", "test.describe.only", "test.describe.parallel", "test.describe.parallel.only", "test.describe.serial", "test.describe.serial.only", "skip", "xit", "xdescribe", "xtest", "fit", "fdescribe", "ftest"];
280
+ function So(e) {
281
+ return uu(e, go);
282
+ }
283
+ function kt(e, t) {
284
+ if ((e == null ? void 0 : e.type) !== "CallExpression" || e.optional) return false;
285
+ let r = pe(e);
286
+ if (r.length === 1) {
287
+ if (wn(e) && kt(t)) return Mt(r[0]);
288
+ if (ho(e.callee)) return wn(r[0]);
289
+ } else if ((r.length === 2 || r.length === 3) && (r[0].type === "TemplateLiteral" || te(r[0])) && So(e.callee)) return r[2] && !Fe(r[2]) ? false : (r.length === 2 ? Mt(r[1]) : To(r[1]) && z(r[1]).length <= 1) || wn(r[1]);
290
+ return false;
291
+ }
292
+ var mu = (e) => (t) => ((t == null ? void 0 : t.type) === "ChainExpression" && (t = t.expression), e(t)), L = mu(R(["CallExpression", "OptionalCallExpression"])), W = mu(R(["MemberExpression", "OptionalMemberExpression"]));
293
+ function Rn(e, t = 5) {
294
+ return yu(e, t) <= t;
295
+ }
296
+ function yu(e, t) {
297
+ let r = 0;
298
+ for (let n in e) {
299
+ let s = e[n];
300
+ if (s && typeof s == "object" && typeof s.type == "string" && (r++, r += yu(s, t - r)), r > t) return r;
301
+ }
302
+ return r;
303
+ }
304
+ var Bo = 0.25;
305
+ function sr(e, t) {
306
+ let { printWidth: r } = t;
307
+ if (T(e)) return false;
308
+ let n = r * Bo;
309
+ if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= n || jn(e) && !T(e.argument)) return true;
310
+ let s = e.type === "Literal" && "regex" in e && e.regex.pattern || e.type === "RegExpLiteral" && e.pattern;
311
+ return s ? s.length <= n : te(e) ? rt(fe(e), t).length <= n : e.type === "TemplateLiteral" ? e.expressions.length === 0 && e.quasis[0].value.raw.length <= n && !e.quasis[0].value.raw.includes(`
312
+ `) : e.type === "UnaryExpression" ? sr(e.argument, { printWidth: r }) : e.type === "CallExpression" && e.arguments.length === 0 && e.callee.type === "Identifier" ? e.callee.name.length <= n - 2 : Ir(e);
313
+ }
314
+ function Le(e, t) {
315
+ return X(t) ? It(t) : T(t, h.Leading, (r) => Z(e, k(r)));
316
+ }
317
+ function iu(e) {
318
+ return e.quasis.some((t) => t.value.raw.includes(`
319
+ `));
320
+ }
321
+ function wr(e, t) {
322
+ return (e.type === "TemplateLiteral" && iu(e) || e.type === "TaggedTemplateExpression" && iu(e.quasi)) && !Z(t, q(e), { backwards: true });
323
+ }
324
+ function Or(e) {
325
+ if (!T(e)) return false;
326
+ let t = M(false, ct(e, h.Dangling), -1);
327
+ return t && !ee(t);
328
+ }
329
+ function Du(e) {
330
+ if (e.length <= 1) return false;
331
+ let t = 0;
332
+ for (let r of e) if (Mt(r)) {
333
+ if (t += 1, t > 1) return true;
334
+ } else if (L(r)) {
335
+ for (let n of pe(r)) if (Mt(n)) return true;
336
+ }
337
+ return false;
338
+ }
339
+ function _r(e) {
340
+ let { node: t, parent: r, key: n } = e;
341
+ return n === "callee" && L(t) && L(r) && r.arguments.length > 0 && t.arguments.length > r.arguments.length;
342
+ }
343
+ var bo = /* @__PURE__ */ new Set(["!", "-", "+", "~"]);
344
+ function Ie(e, t = 2) {
345
+ if (t <= 0) return false;
346
+ if (e.type === "ChainExpression" || e.type === "TSNonNullExpression") return Ie(e.expression, t);
347
+ let r = (n) => Ie(n, t - 1);
348
+ if (Mn(e)) return tt(e.pattern ?? e.regex.pattern) <= 5;
349
+ if (Ir(e) || Ao(e) || e.type === "ArgumentPlaceholder") return true;
350
+ if (e.type === "TemplateLiteral") return e.quasis.every((n) => !n.value.raw.includes(`
351
+ `)) && e.expressions.every(r);
352
+ if (se(e)) return e.properties.every((n) => !n.computed && (n.shorthand || n.value && r(n.value)));
353
+ if (Y(e)) return e.elements.every((n) => n === null || r(n));
354
+ if (lt(e)) {
355
+ if (e.type === "ImportExpression" || Ie(e.callee, t)) {
356
+ let n = pe(e);
357
+ return n.length <= t && n.every(r);
358
+ }
359
+ return false;
360
+ }
361
+ return W(e) ? Ie(e.object, t) && Ie(e.property, t) : e.type === "UnaryExpression" && bo.has(e.operator) || e.type === "UpdateExpression" ? Ie(e.argument, t) : false;
362
+ }
363
+ function fe(e) {
364
+ var t;
365
+ return ((t = e.extra) == null ? void 0 : t.raw) ?? e.raw;
366
+ }
367
+ function fu(e) {
368
+ return e;
369
+ }
370
+ function oe(e, t = "es5") {
371
+ return e.trailingComma === "es5" && t === "es5" || e.trailingComma === "all" && (t === "all" || t === "es5");
372
+ }
373
+ function ae(e, t) {
374
+ switch (e.type) {
375
+ case "BinaryExpression":
376
+ case "LogicalExpression":
377
+ case "AssignmentExpression":
378
+ case "NGPipeExpression":
379
+ return ae(e.left, t);
380
+ case "MemberExpression":
381
+ case "OptionalMemberExpression":
382
+ return ae(e.object, t);
383
+ case "TaggedTemplateExpression":
384
+ return e.tag.type === "FunctionExpression" ? false : ae(e.tag, t);
385
+ case "CallExpression":
386
+ case "OptionalCallExpression":
387
+ return e.callee.type === "FunctionExpression" ? false : ae(e.callee, t);
388
+ case "ConditionalExpression":
389
+ return ae(e.test, t);
390
+ case "UpdateExpression":
391
+ return !e.prefix && ae(e.argument, t);
392
+ case "BindExpression":
393
+ return e.object && ae(e.object, t);
394
+ case "SequenceExpression":
395
+ return ae(e.expressions[0], t);
396
+ case "ChainExpression":
397
+ case "TSSatisfiesExpression":
398
+ case "TSAsExpression":
399
+ case "TSNonNullExpression":
400
+ case "AsExpression":
401
+ case "AsConstExpression":
402
+ case "SatisfiesExpression":
403
+ return ae(e.expression, t);
404
+ default:
405
+ return t(e);
406
+ }
407
+ }
408
+ var au = { "==": true, "!=": true, "===": true, "!==": true }, Pr = { "*": true, "/": true, "%": true }, vn = { ">>": true, ">>>": true, "<<": true };
409
+ function ur(e, t) {
410
+ return !(rr(t) !== rr(e) || e === "**" || au[e] && au[t] || t === "%" && Pr[e] || e === "%" && Pr[t] || t !== e && Pr[t] && Pr[e] || vn[e] && vn[t]);
411
+ }
412
+ var Po = new Map([["|>"], ["??"], ["||"], ["&&"], ["|"], ["^"], ["&"], ["==", "===", "!=", "!=="], ["<", ">", "<=", ">=", "in", "instanceof"], [">>", "<<", ">>>"], ["+", "-"], ["*", "/", "%"], ["**"]].flatMap((e, t) => e.map((r) => [r, t])));
413
+ function rr(e) {
414
+ return Po.get(e);
415
+ }
416
+ function Eu(e) {
417
+ return !!vn[e] || e === "|" || e === "^" || e === "&";
418
+ }
419
+ function Fu(e) {
420
+ var r;
421
+ if (e.rest) return true;
422
+ let t = z(e);
423
+ return ((r = M(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
424
+ }
425
+ var On = /* @__PURE__ */ new WeakMap();
426
+ function z(e) {
427
+ if (On.has(e)) return On.get(e);
428
+ let t = [];
429
+ return e.this && t.push(e.this), Array.isArray(e.parameters) ? t.push(...e.parameters) : Array.isArray(e.params) && t.push(...e.params), e.rest && t.push(e.rest), On.set(e, t), t;
430
+ }
431
+ function Cu(e, t) {
432
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
433
+ r.this && e.call(s, "this"), Array.isArray(r.parameters) ? e.each(s, "parameters") : Array.isArray(r.params) && e.each(s, "params"), r.rest && e.call(s, "rest");
434
+ }
435
+ var _n = /* @__PURE__ */ new WeakMap();
436
+ function pe(e) {
437
+ if (_n.has(e)) return _n.get(e);
438
+ if (e.type === "ChainExpression") return pe(e.expression);
439
+ let t = e.arguments;
440
+ return e.type === "ImportExpression" && (t = [e.source], e.options && t.push(e.options)), _n.set(e, t), t;
441
+ }
442
+ function qt(e, t) {
443
+ let { node: r } = e;
444
+ if (r.type === "ChainExpression") return e.call(() => qt(e, t), "expression");
445
+ r.type === "ImportExpression" ? (e.call((n) => t(n, 0), "source"), r.options && e.call((n) => t(n, 1), "options")) : e.each(t, "arguments");
446
+ }
447
+ function Jn(e, t) {
448
+ let r = [];
449
+ if (e.type === "ChainExpression" && (e = e.expression, r.push("expression")), e.type === "ImportExpression") {
450
+ if (t === 0 || t === (e.options ? -2 : -1)) return [...r, "source"];
451
+ if (e.options && (t === 1 || t === -1)) return [...r, "options"];
452
+ throw new RangeError("Invalid argument index");
453
+ }
454
+ if (t < 0 && (t = e.arguments.length + t), t < 0 || t >= e.arguments.length) throw new RangeError("Invalid argument index");
455
+ return [...r, "arguments", t];
456
+ }
457
+ function ir(e) {
458
+ return e.value.trim() === "prettier-ignore" && !e.unignore;
459
+ }
460
+ function It(e) {
461
+ return (e == null ? void 0 : e.prettierIgnore) || T(e, h.PrettierIgnore);
462
+ }
463
+ var h = { Leading: 2, Trailing: 4, Dangling: 8, Block: 16, Line: 32, PrettierIgnore: 64, First: 128, Last: 256 }, Au = (e, t) => {
464
+ if (typeof e == "function" && (t = e, e = 0), e || t) return (r, n, s) => !(e & h.Leading && !r.leading || e & h.Trailing && !r.trailing || e & h.Dangling && (r.leading || r.trailing) || e & h.Block && !ee(r) || e & h.Line && !Ct(r) || e & h.First && n !== 0 || e & h.Last && n !== s.length - 1 || e & h.PrettierIgnore && !ir(r) || t && !t(r));
465
+ };
466
+ function T(e, t, r) {
467
+ if (!O(e == null ? void 0 : e.comments)) return false;
468
+ let n = Au(t, r);
469
+ return n ? e.comments.some(n) : true;
470
+ }
471
+ function ct(e, t, r) {
472
+ if (!Array.isArray(e == null ? void 0 : e.comments)) return [];
473
+ let n = Au(t, r);
474
+ return n ? e.comments.filter(n) : e.comments;
475
+ }
476
+ var ce = (e, { originalText: t }) => vt(t, k(e));
477
+ function lt(e) {
478
+ return L(e) || e.type === "NewExpression" || e.type === "ImportExpression";
479
+ }
480
+ function Ce(e) {
481
+ return e && (e.type === "ObjectProperty" || e.type === "Property" && !Pt(e));
482
+ }
483
+ var Ae = R(["TSAsExpression", "TSSatisfiesExpression", "AsExpression", "AsConstExpression", "SatisfiesExpression"]), Xe = R(["UnionTypeAnnotation", "TSUnionType"]), vr = R(["IntersectionTypeAnnotation", "TSIntersectionType"]);
484
+ var ko = /* @__PURE__ */ new Set(["range", "raw", "comments", "leadingComments", "trailingComments", "innerComments", "extra", "start", "end", "loc", "flags", "errors", "tokens"]), Wt = (e) => {
485
+ for (let t of e.quasis) delete t.value;
486
+ };
487
+ function Tu(e, t, r) {
488
+ var s, u;
489
+ if (e.type === "Program" && delete t.sourceType, (e.type === "BigIntLiteral" || e.type === "BigIntLiteralTypeAnnotation") && e.value && (t.value = e.value.toLowerCase()), (e.type === "BigIntLiteral" || e.type === "Literal") && e.bigint && (t.bigint = e.bigint.toLowerCase()), e.type === "EmptyStatement" || e.type === "JSXText" || e.type === "JSXExpressionContainer" && (e.expression.type === "Literal" || e.expression.type === "StringLiteral") && e.expression.value === " ") return null;
490
+ if ((e.type === "Property" || e.type === "ObjectProperty" || e.type === "MethodDefinition" || e.type === "ClassProperty" || e.type === "ClassMethod" || e.type === "PropertyDefinition" || e.type === "TSDeclareMethod" || e.type === "TSPropertySignature" || e.type === "ObjectTypeProperty" || e.type === "ImportAttribute") && e.key && !e.computed) {
491
+ let { key: i } = e;
492
+ te(i) || Fe(i) ? t.key = String(i.value) : i.type === "Identifier" && (t.key = i.name);
493
+ }
494
+ if (e.type === "JSXElement" && e.openingElement.name.name === "style" && e.openingElement.attributes.some((i) => i.type === "JSXAttribute" && i.name.name === "jsx")) for (let { type: i, expression: a } of t.children) i === "JSXExpressionContainer" && a.type === "TemplateLiteral" && Wt(a);
495
+ e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && Wt(t.value.expression), e.type === "JSXAttribute" && ((s = e.value) == null ? void 0 : s.type) === "Literal" && /["']|&quot;|&apos;/u.test(e.value.value) && (t.value.value = N(false, e.value.value, /["']|&quot;|&apos;/gu, '"'));
496
+ let n = e.expression || e.callee;
497
+ if (e.type === "Decorator" && n.type === "CallExpression" && n.callee.name === "Component" && n.arguments.length === 1) {
498
+ let i = e.expression.arguments[0].properties;
499
+ for (let [a, o] of t.expression.arguments[0].properties.entries()) switch (i[a].key.name) {
500
+ case "styles":
501
+ Y(o.value) && Wt(o.value.elements[0]);
502
+ break;
503
+ case "template":
504
+ o.value.type === "TemplateLiteral" && Wt(o.value);
505
+ break;
506
+ }
507
+ }
508
+ e.type === "TaggedTemplateExpression" && (e.tag.type === "MemberExpression" || e.tag.type === "Identifier" && (e.tag.name === "gql" || e.tag.name === "graphql" || e.tag.name === "css" || e.tag.name === "md" || e.tag.name === "markdown" || e.tag.name === "html") || e.tag.type === "CallExpression") && Wt(t.quasi), e.type === "TemplateLiteral" && ((u = e.leadingComments) != null && u.some((a) => ee(a) && ["GraphQL", "HTML"].some((o) => a.value === ` ${o} `)) || r.type === "CallExpression" && r.callee.name === "graphql" || !e.leadingComments) && Wt(t), e.type === "ChainExpression" && e.expression.type === "TSNonNullExpression" && (t.type = "TSNonNullExpression", t.expression.type = "ChainExpression"), e.type === "TSMappedType" && (delete t.key, delete t.constraint), e.type === "TSEnumDeclaration" && delete t.body;
509
+ }
510
+ Tu.ignoredProperties = ko;
511
+ var du = Tu;
512
+ var Re = "string", he = "array", nt = "cursor", He = "indent", Ve = "align", $e = "trim", me = "group", we = "fill", Te = "if-break", Ke = "indent-if-break", Qe = "line-suffix", Je = "line-suffix-boundary", ie = "line", ge = "label", Oe = "break-parent", jr = /* @__PURE__ */ new Set([nt, He, Ve, $e, me, we, Te, Ke, Qe, Je, ie, ge, Oe]);
513
+ function Io(e) {
514
+ if (typeof e == "string") return Re;
515
+ if (Array.isArray(e)) return he;
516
+ if (!e) return;
517
+ let { type: t } = e;
518
+ if (jr.has(t)) return t;
519
+ }
520
+ var Se = Io;
521
+ var Lo = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
522
+ function wo(e) {
523
+ let t = e === null ? "null" : typeof e;
524
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
525
+ Expected it to be 'string' or 'object'.`;
526
+ if (Se(e)) throw new Error("doc is valid.");
527
+ let r = Object.prototype.toString.call(e);
528
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
529
+ let n = Lo([...jr].map((s) => `'${s}'`));
530
+ return `Unexpected doc.type '${e.type}'.
531
+ Expected it to be ${n}.`;
532
+ }
533
+ var qn = class extends Error {
534
+ name = "InvalidDocError";
535
+ constructor(t) {
536
+ super(wo(t)), this.doc = t;
537
+ }
538
+ }, Tt = qn;
539
+ var xu = {};
540
+ function Oo(e, t, r, n) {
541
+ let s = [e];
542
+ for (; s.length > 0; ) {
543
+ let u = s.pop();
544
+ if (u === xu) {
545
+ r(s.pop());
546
+ continue;
547
+ }
548
+ r && s.push(u, xu);
549
+ let i = Se(u);
550
+ if (!i) throw new Tt(u);
551
+ if ((t == null ? void 0 : t(u)) !== false) switch (i) {
552
+ case he:
553
+ case we: {
554
+ let a = i === he ? u : u.parts;
555
+ for (let o = a.length, p = o - 1; p >= 0; --p) s.push(a[p]);
556
+ break;
557
+ }
558
+ case Te:
559
+ s.push(u.flatContents, u.breakContents);
560
+ break;
561
+ case me:
562
+ if (n && u.expandedStates) for (let a = u.expandedStates.length, o = a - 1; o >= 0; --o) s.push(u.expandedStates[o]);
563
+ else s.push(u.contents);
564
+ break;
565
+ case Ve:
566
+ case He:
567
+ case Ke:
568
+ case ge:
569
+ case Qe:
570
+ s.push(u.contents);
571
+ break;
572
+ case Re:
573
+ case nt:
574
+ case $e:
575
+ case Je:
576
+ case ie:
577
+ case Oe:
578
+ break;
579
+ default:
580
+ throw new Tt(u);
581
+ }
582
+ }
583
+ }
584
+ var ar = Oo;
585
+ function mt(e, t) {
586
+ if (typeof e == "string") return t(e);
587
+ let r = /* @__PURE__ */ new Map();
588
+ return n(e);
589
+ function n(u) {
590
+ if (r.has(u)) return r.get(u);
591
+ let i = s(u);
592
+ return r.set(u, i), i;
593
+ }
594
+ function s(u) {
595
+ switch (Se(u)) {
596
+ case he:
597
+ return t(u.map(n));
598
+ case we:
599
+ return t({ ...u, parts: u.parts.map(n) });
600
+ case Te:
601
+ return t({ ...u, breakContents: n(u.breakContents), flatContents: n(u.flatContents) });
602
+ case me: {
603
+ let { expandedStates: i, contents: a } = u;
604
+ return i ? (i = i.map(n), a = i[0]) : a = n(a), t({ ...u, contents: a, expandedStates: i });
605
+ }
606
+ case Ve:
607
+ case He:
608
+ case Ke:
609
+ case ge:
610
+ case Qe:
611
+ return t({ ...u, contents: n(u.contents) });
612
+ case Re:
613
+ case nt:
614
+ case $e:
615
+ case Je:
616
+ case ie:
617
+ case Oe:
618
+ return t(u);
619
+ default:
620
+ throw new Tt(u);
621
+ }
622
+ }
623
+ }
624
+ function gu(e, t, r) {
625
+ let n = r, s = false;
626
+ function u(i) {
627
+ if (s) return false;
628
+ let a = t(i);
629
+ a !== void 0 && (s = true, n = a);
630
+ }
631
+ return ar(e, u), n;
632
+ }
633
+ function _o(e) {
634
+ if (e.type === me && e.break || e.type === ie && e.hard || e.type === Oe) return true;
635
+ }
636
+ function re(e) {
637
+ return gu(e, _o, false);
638
+ }
639
+ function hu(e) {
640
+ if (e.length > 0) {
641
+ let t = M(false, e, -1);
642
+ !t.expandedStates && !t.break && (t.break = "propagated");
643
+ }
644
+ return null;
645
+ }
646
+ function Su(e) {
647
+ let t = /* @__PURE__ */ new Set(), r = [];
648
+ function n(u) {
649
+ if (u.type === Oe && hu(r), u.type === me) {
650
+ if (r.push(u), t.has(u)) return false;
651
+ t.add(u);
652
+ }
653
+ }
654
+ function s(u) {
655
+ u.type === me && r.pop().break && hu(r);
656
+ }
657
+ ar(e, n, s, true);
658
+ }
659
+ function vo(e) {
660
+ return e.type === ie && !e.hard ? e.soft ? "" : " " : e.type === Te ? e.flatContents : e;
661
+ }
662
+ function or(e) {
663
+ return mt(e, vo);
664
+ }
665
+ function jo(e) {
666
+ switch (Se(e)) {
667
+ case we:
668
+ if (e.parts.every((t) => t === "")) return "";
669
+ break;
670
+ case me:
671
+ if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
672
+ if (e.contents.type === me && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
673
+ break;
674
+ case Ve:
675
+ case He:
676
+ case Ke:
677
+ case Qe:
678
+ if (!e.contents) return "";
679
+ break;
680
+ case Te:
681
+ if (!e.flatContents && !e.breakContents) return "";
682
+ break;
683
+ case he: {
684
+ let t = [];
685
+ for (let r of e) {
686
+ if (!r) continue;
687
+ let [n, ...s] = Array.isArray(r) ? r : [r];
688
+ typeof n == "string" && typeof M(false, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...s);
689
+ }
690
+ return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
691
+ }
692
+ case Re:
693
+ case nt:
694
+ case $e:
695
+ case Je:
696
+ case ie:
697
+ case ge:
698
+ case Oe:
699
+ break;
700
+ default:
701
+ throw new Tt(e);
702
+ }
703
+ return e;
704
+ }
705
+ function Gt(e) {
706
+ return mt(e, (t) => jo(t));
707
+ }
708
+ function _e(e, t = Mr) {
709
+ return mt(e, (r) => typeof r == "string" ? b(t, r.split(`
710
+ `)) : r);
711
+ }
712
+ function Mo(e) {
713
+ if (e.type === ie) return true;
714
+ }
715
+ function Bu(e) {
716
+ return gu(e, Mo, false);
717
+ }
718
+ function pr(e, t) {
719
+ return e.type === ge ? { ...e, contents: t(e.contents) } : t(e);
720
+ }
721
+ function bu(e) {
722
+ let t = true;
723
+ return ar(e, (r) => {
724
+ switch (Se(r)) {
725
+ case Re:
726
+ if (r === "") break;
727
+ case $e:
728
+ case Je:
729
+ case ie:
730
+ case Oe:
731
+ return t = false, false;
732
+ }
733
+ }), t;
734
+ }
735
+ var Wn = () => {
736
+ }, Gn = Wn;
737
+ function f(e) {
738
+ return { type: He, contents: e };
739
+ }
740
+ function Be(e, t) {
741
+ return { type: Ve, contents: t, n: e };
742
+ }
743
+ function l(e, t = {}) {
744
+ return Gn(t.expandedStates), { type: me, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
745
+ }
746
+ function ku(e) {
747
+ return Be(Number.NEGATIVE_INFINITY, e);
748
+ }
749
+ function Rr(e) {
750
+ return Be(-1, e);
751
+ }
752
+ function Ze(e, t) {
753
+ return l(e[0], { ...t, expandedStates: e });
754
+ }
755
+ function Jr(e) {
756
+ return { type: we, parts: e };
757
+ }
758
+ function B(e, t = "", r = {}) {
759
+ return { type: Te, breakContents: e, flatContents: t, groupId: r.groupId };
760
+ }
761
+ function dt(e, t) {
762
+ return { type: Ke, contents: e, groupId: t.groupId, negate: t.negate };
763
+ }
764
+ function Un(e) {
765
+ return { type: Qe, contents: e };
766
+ }
767
+ var ve = { type: Je }, Ee = { type: Oe };
768
+ var Yn = { type: ie, hard: true }, Ro = { type: ie, hard: true, literal: true }, x = { type: ie }, E = { type: ie, soft: true }, F = [Yn, Ee], Mr = [Ro, Ee], cr = { type: nt };
769
+ function b(e, t) {
770
+ let r = [];
771
+ for (let n = 0; n < t.length; n++) n !== 0 && r.push(e), r.push(t[n]);
772
+ return r;
773
+ }
774
+ function Iu(e, t, r) {
775
+ let n = e;
776
+ if (t > 0) {
777
+ for (let s = 0; s < Math.floor(t / r); ++s) n = f(n);
778
+ n = Be(t % r, n), n = Be(Number.NEGATIVE_INFINITY, n);
779
+ }
780
+ return n;
781
+ }
782
+ function st(e, t) {
783
+ return e ? { type: ge, label: e, contents: t } : t;
784
+ }
785
+ function Jo(e) {
786
+ let t = `*${e.value}*`.split(`
787
+ `);
788
+ return t.length > 1 && t.every((r) => r.trimStart()[0] === "*");
789
+ }
790
+ var Lu = Jo;
791
+ function wu(e, t) {
792
+ let r = e.node;
793
+ if (Ct(r)) return t.originalText.slice(q(r), k(r)).trimEnd();
794
+ if (ee(r)) return Lu(r) ? qo(r) : ["/*", _e(r.value), "*/"];
795
+ throw new Error("Not a comment: " + JSON.stringify(r));
796
+ }
797
+ function qo(e) {
798
+ let t = e.value.split(`
799
+ `);
800
+ return ["/*", b(F, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
801
+ }
802
+ var Qn = {};
803
+ Tr(Qn, { endOfLine: () => Ho, ownLine: () => Xo, remaining: () => Vo });
804
+ function Wo(e) {
805
+ let t = e.type || e.kind || "(unknown type)", r = String(e.name || e.id && (typeof e.id == "object" ? e.id.name : e.id) || e.key && (typeof e.key == "object" ? e.key.name : e.key) || e.value && (typeof e.value == "object" ? "" : String(e.value)) || e.operator || "");
806
+ return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
807
+ }
808
+ function Nn(e, t) {
809
+ (e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = Wo(e);
810
+ }
811
+ function le(e, t) {
812
+ t.leading = true, t.trailing = false, Nn(e, t);
813
+ }
814
+ function je(e, t, r) {
815
+ t.leading = false, t.trailing = false, r && (t.marker = r), Nn(e, t);
816
+ }
817
+ function V(e, t) {
818
+ t.leading = false, t.trailing = true, Nn(e, t);
819
+ }
820
+ function Go(e, t) {
821
+ let r = null, n = t;
822
+ for (; n !== r; ) r = n, n = Ye(e, n), n = Ot(e, n), n = _t(e, n), n = Ne(e, n);
823
+ return n;
824
+ }
825
+ var ut = Go;
826
+ function Uo(e, t) {
827
+ let r = ut(e, t);
828
+ return r === false ? "" : e.charAt(r);
829
+ }
830
+ var be = Uo;
831
+ function Yo(e, t, r) {
832
+ for (let n = t; n < r; ++n) if (e.charAt(n) === `
833
+ `) return true;
834
+ return false;
835
+ }
836
+ var de = Yo;
837
+ function No(e) {
838
+ return ee(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value);
839
+ }
840
+ var qr = No;
841
+ function Xo(e) {
842
+ return [qu, _u, Mu, up, Ko, Hn, Vn, Ou, vu, pp, ap, Kn, Ju, cp, ju, Ru, $n, Qo, Cp].some((t) => t(e));
843
+ }
844
+ function Ho(e) {
845
+ return [$o, Mu, _u, Ju, Hn, Vn, Ou, vu, Ru, ip, op, Kn, yp, $n, Ep, Fp, Ap].some((t) => t(e));
846
+ }
847
+ function Vo(e) {
848
+ return [qu, Hn, Vn, zo, sp, ju, Kn, np, rp, fp, $n, Dp].some((t) => t(e));
849
+ }
850
+ function Lt(e, t) {
851
+ let r = (e.body || e.properties).find(({ type: n }) => n !== "EmptyStatement");
852
+ r ? le(r, t) : je(e, t);
853
+ }
854
+ function Xn(e, t) {
855
+ e.type === "BlockStatement" ? Lt(e, t) : le(e, t);
856
+ }
857
+ function $o({ comment: e, followingNode: t }) {
858
+ return t && qr(e) ? (le(t, e), true) : false;
859
+ }
860
+ function Hn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
861
+ if ((r == null ? void 0 : r.type) !== "IfStatement" || !n) return false;
862
+ if (be(s, k(e)) === ")") return V(t, e), true;
863
+ if (t === r.consequent && n === r.alternate) {
864
+ let i = ut(s, k(r.consequent));
865
+ if (q(e) < i || r.alternate.type === "BlockStatement") {
866
+ if (t.type === "BlockStatement") V(t, e);
867
+ else {
868
+ let a = Ct(e) || e.loc.start.line === e.loc.end.line, o = e.loc.start.line === t.loc.start.line;
869
+ a && o ? V(t, e) : je(r, e);
870
+ }
871
+ return true;
872
+ }
873
+ }
874
+ return n.type === "BlockStatement" ? (Lt(n, e), true) : n.type === "IfStatement" ? (Xn(n.consequent, e), true) : r.consequent === n ? (le(n, e), true) : false;
875
+ }
876
+ function Vn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
877
+ return (r == null ? void 0 : r.type) !== "WhileStatement" || !n ? false : be(s, k(e)) === ")" ? (V(t, e), true) : n.type === "BlockStatement" ? (Lt(n, e), true) : r.body === n ? (le(n, e), true) : false;
878
+ }
879
+ function Ou({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
880
+ return (r == null ? void 0 : r.type) !== "TryStatement" && (r == null ? void 0 : r.type) !== "CatchClause" || !n ? false : r.type === "CatchClause" && t ? (V(t, e), true) : n.type === "BlockStatement" ? (Lt(n, e), true) : n.type === "TryStatement" ? (Xn(n.finalizer, e), true) : n.type === "CatchClause" ? (Xn(n.body, e), true) : false;
881
+ }
882
+ function Ko({ comment: e, enclosingNode: t, followingNode: r }) {
883
+ return W(t) && (r == null ? void 0 : r.type) === "Identifier" ? (le(t, e), true) : false;
884
+ }
885
+ function Qo({ comment: e, enclosingNode: t, followingNode: r, options: n }) {
886
+ return !n.experimentalTernaries || !((t == null ? void 0 : t.type) === "ConditionalExpression" || (t == null ? void 0 : t.type) === "ConditionalTypeAnnotation" || (t == null ? void 0 : t.type) === "TSConditionalType") ? false : (r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "ConditionalTypeAnnotation" || (r == null ? void 0 : r.type) === "TSConditionalType" ? (je(t, e), true) : false;
887
+ }
888
+ function _u({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s, options: u }) {
889
+ let i = t && !de(s, k(t), q(e));
890
+ return (!t || !i) && ((r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "ConditionalTypeAnnotation" || (r == null ? void 0 : r.type) === "TSConditionalType") && n ? u.experimentalTernaries && r.alternate === n && !(ee(e) && !de(u.originalText, q(e), k(e))) ? (je(r, e), true) : (le(n, e), true) : false;
891
+ }
892
+ function zo({ comment: e, precedingNode: t, enclosingNode: r }) {
893
+ return Ce(r) && r.shorthand && r.key === t && r.value.type === "AssignmentPattern" ? (V(r.value.left, e), true) : false;
894
+ }
895
+ var Zo = /* @__PURE__ */ new Set(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
896
+ function vu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
897
+ if (Zo.has(r == null ? void 0 : r.type)) {
898
+ if (O(r.decorators) && (n == null ? void 0 : n.type) !== "Decorator") return V(M(false, r.decorators, -1), e), true;
899
+ if (r.body && n === r.body) return Lt(r.body, e), true;
900
+ if (n) {
901
+ if (r.superClass && n === r.superClass && t && (t === r.id || t === r.typeParameters)) return V(t, e), true;
902
+ for (let s of ["implements", "extends", "mixins"]) if (r[s] && n === r[s][0]) return t && (t === r.id || t === r.typeParameters || t === r.superClass) ? V(t, e) : je(r, e, s), true;
903
+ }
904
+ }
905
+ return false;
906
+ }
907
+ var ep = /* @__PURE__ */ new Set(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "TSParameterProperty"]);
908
+ function ju({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
909
+ return r && t && be(n, k(e)) === "(" && (r.type === "Property" || r.type === "TSDeclareMethod" || r.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && r.key === t && be(n, k(t)) !== ":" ? (V(t, e), true) : (t == null ? void 0 : t.type) === "Decorator" && ep.has(r == null ? void 0 : r.type) && (Ct(e) || e.placement === "ownLine") ? (V(t, e), true) : false;
910
+ }
911
+ var tp = /* @__PURE__ */ new Set(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
912
+ function rp({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
913
+ return be(n, k(e)) !== "(" ? false : t && tp.has(r == null ? void 0 : r.type) ? (V(t, e), true) : false;
914
+ }
915
+ function np({ comment: e, enclosingNode: t, text: r }) {
916
+ if ((t == null ? void 0 : t.type) !== "ArrowFunctionExpression") return false;
917
+ let n = ut(r, k(e));
918
+ return n !== false && r.slice(n, n + 2) === "=>" ? (je(t, e), true) : false;
919
+ }
920
+ function sp({ comment: e, enclosingNode: t, text: r }) {
921
+ return be(r, k(e)) !== ")" ? false : t && (Wu(t) && z(t).length === 0 || lt(t) && pe(t).length === 0) ? (je(t, e), true) : ((t == null ? void 0 : t.type) === "MethodDefinition" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && z(t.value).length === 0 ? (je(t.value, e), true) : false;
922
+ }
923
+ function up({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
924
+ return (t == null ? void 0 : t.type) === "ComponentTypeParameter" && ((r == null ? void 0 : r.type) === "DeclareComponent" || (r == null ? void 0 : r.type) === "ComponentTypeAnnotation") && (n == null ? void 0 : n.type) !== "ComponentTypeParameter" ? (V(t, e), true) : ((t == null ? void 0 : t.type) === "ComponentParameter" || (t == null ? void 0 : t.type) === "RestElement") && (r == null ? void 0 : r.type) === "ComponentDeclaration" && be(s, k(e)) === ")" ? (V(t, e), true) : false;
925
+ }
926
+ function Mu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
927
+ return (t == null ? void 0 : t.type) === "FunctionTypeParam" && (r == null ? void 0 : r.type) === "FunctionTypeAnnotation" && (n == null ? void 0 : n.type) !== "FunctionTypeParam" ? (V(t, e), true) : ((t == null ? void 0 : t.type) === "Identifier" || (t == null ? void 0 : t.type) === "AssignmentPattern" || (t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern" || (t == null ? void 0 : t.type) === "RestElement" || (t == null ? void 0 : t.type) === "TSParameterProperty") && Wu(r) && be(s, k(e)) === ")" ? (V(t, e), true) : !ee(e) && ((r == null ? void 0 : r.type) === "FunctionDeclaration" || (r == null ? void 0 : r.type) === "FunctionExpression" || (r == null ? void 0 : r.type) === "ObjectMethod") && (n == null ? void 0 : n.type) === "BlockStatement" && r.body === n && ut(s, k(e)) === q(n) ? (Lt(n, e), true) : false;
928
+ }
929
+ function Ru({ comment: e, enclosingNode: t }) {
930
+ return (t == null ? void 0 : t.type) === "LabeledStatement" ? (le(t, e), true) : false;
931
+ }
932
+ function $n({ comment: e, enclosingNode: t }) {
933
+ return ((t == null ? void 0 : t.type) === "ContinueStatement" || (t == null ? void 0 : t.type) === "BreakStatement") && !t.label ? (V(t, e), true) : false;
934
+ }
935
+ function ip({ comment: e, precedingNode: t, enclosingNode: r }) {
936
+ return L(r) && t && r.callee === t && r.arguments.length > 0 ? (le(r.arguments[0], e), true) : false;
937
+ }
938
+ function ap({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
939
+ return Xe(r) ? (ir(e) && (n.prettierIgnore = true, e.unignore = true), t ? (V(t, e), true) : false) : (Xe(n) && ir(e) && (n.types[0].prettierIgnore = true, e.unignore = true), false);
940
+ }
941
+ function op({ comment: e, enclosingNode: t }) {
942
+ return Ce(t) ? (le(t, e), true) : false;
943
+ }
944
+ function Kn({ comment: e, enclosingNode: t, ast: r, isLastComment: n }) {
945
+ var s;
946
+ return ((s = r == null ? void 0 : r.body) == null ? void 0 : s.length) === 0 ? (n ? je(r, e) : le(r, e), true) : (t == null ? void 0 : t.type) === "Program" && t.body.length === 0 && !O(t.directives) ? (n ? je(t, e) : le(t, e), true) : false;
947
+ }
948
+ function pp({ comment: e, enclosingNode: t }) {
949
+ return (t == null ? void 0 : t.type) === "ForInStatement" || (t == null ? void 0 : t.type) === "ForOfStatement" ? (le(t, e), true) : false;
950
+ }
951
+ function Ju({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
952
+ if ((r == null ? void 0 : r.type) === "ImportSpecifier" || (r == null ? void 0 : r.type) === "ExportSpecifier") return le(r, e), true;
953
+ let s = (t == null ? void 0 : t.type) === "ImportSpecifier" && (r == null ? void 0 : r.type) === "ImportDeclaration", u = (t == null ? void 0 : t.type) === "ExportSpecifier" && (r == null ? void 0 : r.type) === "ExportNamedDeclaration";
954
+ return (s || u) && Z(n, k(e)) ? (V(t, e), true) : false;
955
+ }
956
+ function cp({ comment: e, enclosingNode: t }) {
957
+ return (t == null ? void 0 : t.type) === "AssignmentPattern" ? (le(t, e), true) : false;
958
+ }
959
+ var lp = /* @__PURE__ */ new Set(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]), mp = /* @__PURE__ */ new Set(["ObjectExpression", "RecordExpression", "ArrayExpression", "TupleExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
960
+ function yp({ comment: e, enclosingNode: t, followingNode: r }) {
961
+ return lp.has(t == null ? void 0 : t.type) && r && (mp.has(r.type) || ee(e)) ? (le(r, e), true) : false;
962
+ }
963
+ function Dp({ comment: e, enclosingNode: t, followingNode: r, text: n }) {
964
+ return !r && ((t == null ? void 0 : t.type) === "TSMethodSignature" || (t == null ? void 0 : t.type) === "TSDeclareFunction" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && be(n, k(e)) === ";" ? (V(t, e), true) : false;
965
+ }
966
+ function qu({ comment: e, enclosingNode: t, followingNode: r }) {
967
+ if (ir(e) && (t == null ? void 0 : t.type) === "TSMappedType" && (r == null ? void 0 : r.type) === "TSTypeParameter" && r.constraint) return t.prettierIgnore = true, e.unignore = true, true;
968
+ }
969
+ function fp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
970
+ return (r == null ? void 0 : r.type) !== "TSMappedType" ? false : (n == null ? void 0 : n.type) === "TSTypeParameter" && n.name ? (le(n.name, e), true) : (t == null ? void 0 : t.type) === "TSTypeParameter" && t.constraint ? (V(t.constraint, e), true) : false;
971
+ }
972
+ function Ep({ comment: e, enclosingNode: t, followingNode: r }) {
973
+ return !t || t.type !== "SwitchCase" || t.test || !r || r !== t.consequent[0] ? false : (r.type === "BlockStatement" && Ct(e) ? Lt(r, e) : je(t, e), true);
974
+ }
975
+ function Fp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
976
+ return Xe(t) && ((r.type === "TSArrayType" || r.type === "ArrayTypeAnnotation") && !n || vr(r)) ? (V(M(false, t.types, -1), e), true) : false;
977
+ }
978
+ function Cp({ comment: e, enclosingNode: t, precedingNode: r, followingNode: n }) {
979
+ if (((t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern") && (n == null ? void 0 : n.type) === "TSTypeAnnotation") return r ? V(r, e) : je(t, e), true;
980
+ }
981
+ function Ap({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
982
+ var s;
983
+ if (!n && (r == null ? void 0 : r.type) === "UnaryExpression" && ((t == null ? void 0 : t.type) === "LogicalExpression" || (t == null ? void 0 : t.type) === "BinaryExpression")) {
984
+ let u = ((s = r.argument.loc) == null ? void 0 : s.start.line) !== t.right.loc.start.line, i = Ct(e) || e.loc.start.line === e.loc.end.line, a = e.loc.start.line === t.right.loc.start.line;
985
+ if (u && i && a) return V(t.right, e), true;
986
+ }
987
+ return false;
988
+ }
989
+ var Wu = R(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod"]);
990
+ var Tp = /* @__PURE__ */ new Set(["EmptyStatement", "TemplateElement", "TSEmptyBodyFunctionExpression", "ChainExpression"]);
991
+ function dp(e) {
992
+ return !Tp.has(e.type);
993
+ }
994
+ function xp(e, t) {
995
+ var r;
996
+ if ((t.parser === "typescript" || t.parser === "flow" || t.parser === "acorn" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree") && e.type === "MethodDefinition" && ((r = e.value) == null ? void 0 : r.type) === "FunctionExpression" && z(e.value).length === 0 && !e.value.returnType && !O(e.value.typeParameters) && e.value.body) return [...e.decorators || [], e.key, e.value.body];
997
+ }
998
+ function zn(e) {
999
+ let { node: t, parent: r } = e;
1000
+ return (X(t) || r && (r.type === "JSXSpreadAttribute" || r.type === "JSXSpreadChild" || Xe(r) || (r.type === "ClassDeclaration" || r.type === "ClassExpression") && r.superClass === t)) && (!It(t) || Xe(r));
1001
+ }
1002
+ function hp(e, { parser: t }) {
1003
+ if (t === "flow" || t === "babel-flow") return e = N(false, e, /[\s(]/gu, ""), e === "" || e === "/*" || e === "/*::";
1004
+ }
1005
+ function Gu(e) {
1006
+ switch (e) {
1007
+ case "cr":
1008
+ return "\r";
1009
+ case "crlf":
1010
+ return `\r
1011
+ `;
1012
+ default:
1013
+ return `
1014
+ `;
1015
+ }
1016
+ }
1017
+ var Pe = Symbol("MODE_BREAK"), it = Symbol("MODE_FLAT"), Ut = Symbol("cursor"), Zn = Symbol("DOC_FILL_PRINTED_LENGTH");
1018
+ function Uu() {
1019
+ return { value: "", length: 0, queue: [] };
1020
+ }
1021
+ function gp(e, t) {
1022
+ return es(e, { type: "indent" }, t);
1023
+ }
1024
+ function Sp(e, t, r) {
1025
+ return t === Number.NEGATIVE_INFINITY ? e.root || Uu() : t < 0 ? es(e, { type: "dedent" }, r) : t ? t.type === "root" ? { ...e, root: e } : es(e, { type: typeof t == "string" ? "stringAlign" : "numberAlign", n: t }, r) : e;
1026
+ }
1027
+ function es(e, t, r) {
1028
+ let n = t.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, t], s = "", u = 0, i = 0, a = 0;
1029
+ for (let c of n) switch (c.type) {
1030
+ case "indent":
1031
+ y(), r.useTabs ? o(1) : p(r.tabWidth);
1032
+ break;
1033
+ case "stringAlign":
1034
+ y(), s += c.n, u += c.n.length;
1035
+ break;
1036
+ case "numberAlign":
1037
+ i += 1, a += c.n;
1038
+ break;
1039
+ default:
1040
+ throw new Error(`Unexpected type '${c.type}'`);
1041
+ }
1042
+ return m(), { ...e, value: s, length: u, queue: n };
1043
+ function o(c) {
1044
+ s += " ".repeat(c), u += r.tabWidth * c;
1045
+ }
1046
+ function p(c) {
1047
+ s += " ".repeat(c), u += c;
1048
+ }
1049
+ function y() {
1050
+ r.useTabs ? D() : m();
1051
+ }
1052
+ function D() {
1053
+ i > 0 && o(i), C();
1054
+ }
1055
+ function m() {
1056
+ a > 0 && p(a), C();
1057
+ }
1058
+ function C() {
1059
+ i = 0, a = 0;
1060
+ }
1061
+ }
1062
+ function ts(e) {
1063
+ let t = 0, r = 0, n = e.length;
1064
+ e: for (; n--; ) {
1065
+ let s = e[n];
1066
+ if (s === Ut) {
1067
+ r++;
1068
+ continue;
1069
+ }
1070
+ for (let u = s.length - 1; u >= 0; u--) {
1071
+ let i = s[u];
1072
+ if (i === " " || i === " ") t++;
1073
+ else {
1074
+ e[n] = s.slice(0, u + 1);
1075
+ break e;
1076
+ }
1077
+ }
1078
+ }
1079
+ if (t > 0 || r > 0) for (e.length = n + 1; r-- > 0; ) e.push(Ut);
1080
+ return t;
1081
+ }
1082
+ function Wr(e, t, r, n, s, u) {
1083
+ if (r === Number.POSITIVE_INFINITY) return true;
1084
+ let i = t.length, a = [e], o = [];
1085
+ for (; r >= 0; ) {
1086
+ if (a.length === 0) {
1087
+ if (i === 0) return true;
1088
+ a.push(t[--i]);
1089
+ continue;
1090
+ }
1091
+ let { mode: p, doc: y } = a.pop(), D = Se(y);
1092
+ switch (D) {
1093
+ case Re:
1094
+ o.push(y), r -= tt(y);
1095
+ break;
1096
+ case he:
1097
+ case we: {
1098
+ let m = D === he ? y : y.parts, C = y[Zn] ?? 0;
1099
+ for (let c = m.length - 1; c >= C; c--) a.push({ mode: p, doc: m[c] });
1100
+ break;
1101
+ }
1102
+ case He:
1103
+ case Ve:
1104
+ case Ke:
1105
+ case ge:
1106
+ a.push({ mode: p, doc: y.contents });
1107
+ break;
1108
+ case $e:
1109
+ r += ts(o);
1110
+ break;
1111
+ case me: {
1112
+ if (u && y.break) return false;
1113
+ let m = y.break ? Pe : p, C = y.expandedStates && m === Pe ? M(false, y.expandedStates, -1) : y.contents;
1114
+ a.push({ mode: m, doc: C });
1115
+ break;
1116
+ }
1117
+ case Te: {
1118
+ let C = (y.groupId ? s[y.groupId] || it : p) === Pe ? y.breakContents : y.flatContents;
1119
+ C && a.push({ mode: p, doc: C });
1120
+ break;
1121
+ }
1122
+ case ie:
1123
+ if (p === Pe || y.hard) return true;
1124
+ y.soft || (o.push(" "), r--);
1125
+ break;
1126
+ case Qe:
1127
+ n = true;
1128
+ break;
1129
+ case Je:
1130
+ if (n) return false;
1131
+ break;
1132
+ }
1133
+ }
1134
+ return false;
1135
+ }
1136
+ function rs(e, t) {
1137
+ let r = {}, n = t.printWidth, s = Gu(t.endOfLine), u = 0, i = [{ ind: Uu(), mode: Pe, doc: e }], a = [], o = false, p = [], y = 0;
1138
+ for (Su(e); i.length > 0; ) {
1139
+ let { ind: m, mode: C, doc: c } = i.pop();
1140
+ switch (Se(c)) {
1141
+ case Re: {
1142
+ let A = s !== `
1143
+ ` ? N(false, c, `
1144
+ `, s) : c;
1145
+ a.push(A), i.length > 0 && (u += tt(A));
1146
+ break;
1147
+ }
1148
+ case he:
1149
+ for (let A = c.length - 1; A >= 0; A--) i.push({ ind: m, mode: C, doc: c[A] });
1150
+ break;
1151
+ case nt:
1152
+ if (y >= 2) throw new Error("There are too many 'cursor' in doc.");
1153
+ a.push(Ut), y++;
1154
+ break;
1155
+ case He:
1156
+ i.push({ ind: gp(m, t), mode: C, doc: c.contents });
1157
+ break;
1158
+ case Ve:
1159
+ i.push({ ind: Sp(m, c.n, t), mode: C, doc: c.contents });
1160
+ break;
1161
+ case $e:
1162
+ u -= ts(a);
1163
+ break;
1164
+ case me:
1165
+ switch (C) {
1166
+ case it:
1167
+ if (!o) {
1168
+ i.push({ ind: m, mode: c.break ? Pe : it, doc: c.contents });
1169
+ break;
1170
+ }
1171
+ case Pe: {
1172
+ o = false;
1173
+ let A = { ind: m, mode: it, doc: c.contents }, d = n - u, S = p.length > 0;
1174
+ if (!c.break && Wr(A, i, d, S, r)) i.push(A);
1175
+ else if (c.expandedStates) {
1176
+ let g = M(false, c.expandedStates, -1);
1177
+ if (c.break) {
1178
+ i.push({ ind: m, mode: Pe, doc: g });
1179
+ break;
1180
+ } else for (let _ = 1; _ < c.expandedStates.length + 1; _++) if (_ >= c.expandedStates.length) {
1181
+ i.push({ ind: m, mode: Pe, doc: g });
1182
+ break;
1183
+ } else {
1184
+ let v = c.expandedStates[_], j = { ind: m, mode: it, doc: v };
1185
+ if (Wr(j, i, d, S, r)) {
1186
+ i.push(j);
1187
+ break;
1188
+ }
1189
+ }
1190
+ } else i.push({ ind: m, mode: Pe, doc: c.contents });
1191
+ break;
1192
+ }
1193
+ }
1194
+ c.id && (r[c.id] = M(false, i, -1).mode);
1195
+ break;
1196
+ case we: {
1197
+ let A = n - u, d = c[Zn] ?? 0, { parts: S } = c, g = S.length - d;
1198
+ if (g === 0) break;
1199
+ let _ = S[d + 0], v = S[d + 1], j = { ind: m, mode: it, doc: _ }, I = { ind: m, mode: Pe, doc: _ }, U = Wr(j, [], A, p.length > 0, r, true);
1200
+ if (g === 1) {
1201
+ U ? i.push(j) : i.push(I);
1202
+ break;
1203
+ }
1204
+ let P = { ind: m, mode: it, doc: v }, G = { ind: m, mode: Pe, doc: v };
1205
+ if (g === 2) {
1206
+ U ? i.push(P, j) : i.push(G, I);
1207
+ break;
1208
+ }
1209
+ let ue = S[d + 2], Q = { ind: m, mode: C, doc: { ...c, [Zn]: d + 2 } };
1210
+ Wr({ ind: m, mode: it, doc: [_, v, ue] }, [], A, p.length > 0, r, true) ? i.push(Q, P, j) : U ? i.push(Q, G, j) : i.push(Q, G, I);
1211
+ break;
1212
+ }
1213
+ case Te:
1214
+ case Ke: {
1215
+ let A = c.groupId ? r[c.groupId] : C;
1216
+ if (A === Pe) {
1217
+ let d = c.type === Te ? c.breakContents : c.negate ? c.contents : f(c.contents);
1218
+ d && i.push({ ind: m, mode: C, doc: d });
1219
+ }
1220
+ if (A === it) {
1221
+ let d = c.type === Te ? c.flatContents : c.negate ? f(c.contents) : c.contents;
1222
+ d && i.push({ ind: m, mode: C, doc: d });
1223
+ }
1224
+ break;
1225
+ }
1226
+ case Qe:
1227
+ p.push({ ind: m, mode: C, doc: c.contents });
1228
+ break;
1229
+ case Je:
1230
+ p.length > 0 && i.push({ ind: m, mode: C, doc: Yn });
1231
+ break;
1232
+ case ie:
1233
+ switch (C) {
1234
+ case it:
1235
+ if (c.hard) o = true;
1236
+ else {
1237
+ c.soft || (a.push(" "), u += 1);
1238
+ break;
1239
+ }
1240
+ case Pe:
1241
+ if (p.length > 0) {
1242
+ i.push({ ind: m, mode: C, doc: c }, ...p.reverse()), p.length = 0;
1243
+ break;
1244
+ }
1245
+ c.literal ? m.root ? (a.push(s, m.root.value), u = m.root.length) : (a.push(s), u = 0) : (u -= ts(a), a.push(s + m.value), u = m.length);
1246
+ break;
1247
+ }
1248
+ break;
1249
+ case ge:
1250
+ i.push({ ind: m, mode: C, doc: c.contents });
1251
+ break;
1252
+ case Oe:
1253
+ break;
1254
+ default:
1255
+ throw new Tt(c);
1256
+ }
1257
+ i.length === 0 && p.length > 0 && (i.push(...p.reverse()), p.length = 0);
1258
+ }
1259
+ let D = a.indexOf(Ut);
1260
+ if (D !== -1) {
1261
+ let m = a.indexOf(Ut, D + 1);
1262
+ if (m === -1) return { formatted: a.filter((d) => d !== Ut).join("") };
1263
+ let C = a.slice(0, D).join(""), c = a.slice(D + 1, m).join(""), A = a.slice(m + 1).join("");
1264
+ return { formatted: C + c + A, cursorNodeStart: C.length, cursorNodeText: c };
1265
+ }
1266
+ return { formatted: a.join("") };
1267
+ }
1268
+ function Bp(e, t, r = 0) {
1269
+ let n = 0;
1270
+ for (let s = r; s < e.length; ++s) e[s] === " " ? n = n + t - n % t : n++;
1271
+ return n;
1272
+ }
1273
+ var Yu = Bp;
1274
+ function bp(e, t) {
1275
+ let r = e.lastIndexOf(`
1276
+ `);
1277
+ return r === -1 ? 0 : Yu(e.slice(r + 1).match(/^[\t ]*/u)[0], t);
1278
+ }
1279
+ var Nu = bp;
1280
+ function Gr(e, t, r) {
1281
+ let { node: n } = e;
1282
+ if (n.type === "TemplateLiteral" && Ip(e)) {
1283
+ let p = Pp(e, r, t);
1284
+ if (p) return p;
1285
+ }
1286
+ let u = "expressions";
1287
+ n.type === "TSTemplateLiteralType" && (u = "types");
1288
+ let i = [], a = e.map(t, u);
1289
+ i.push(ve, "`");
1290
+ let o = 0;
1291
+ return e.each(({ index: p, node: y }) => {
1292
+ if (i.push(t()), y.tail) return;
1293
+ let { tabWidth: D } = r, m = y.value.raw, C = m.includes(`
1294
+ `) ? Nu(m, D) : o;
1295
+ o = C;
1296
+ let c = a[p], A = n[u][p], d = de(r.originalText, k(y), q(n.quasis[p + 1]));
1297
+ if (!d) {
1298
+ let g = rs(c, { ...r, printWidth: Number.POSITIVE_INFINITY }).formatted;
1299
+ g.includes(`
1300
+ `) ? d = true : c = g;
1301
+ }
1302
+ d && (T(A) || A.type === "Identifier" || W(A) || A.type === "ConditionalExpression" || A.type === "SequenceExpression" || Ae(A) || De(A)) && (c = [f([E, c]), E]);
1303
+ let S = C === 0 && m.endsWith(`
1304
+ `) ? Be(Number.NEGATIVE_INFINITY, c) : Iu(c, C, D);
1305
+ i.push(l(["${", S, ve, "}"]));
1306
+ }, "quasis"), i.push("`"), i;
1307
+ }
1308
+ function Xu(e, t) {
1309
+ let r = t("quasi");
1310
+ return st(r.label && { tagged: true, ...r.label }, [t("tag"), t(e.node.typeArguments ? "typeArguments" : "typeParameters"), ve, r]);
1311
+ }
1312
+ function Pp(e, t, r) {
1313
+ let { node: n } = e, s = n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);
1314
+ if (s.length > 1 || s.some((u) => u.length > 0)) {
1315
+ t.__inJestEach = true;
1316
+ let u = e.map(r, "expressions");
1317
+ t.__inJestEach = false;
1318
+ let i = [], a = u.map((m) => "${" + rs(m, { ...t, printWidth: Number.POSITIVE_INFINITY, endOfLine: "lf" }).formatted + "}"), o = [{ hasLineBreak: false, cells: [] }];
1319
+ for (let m = 1; m < n.quasis.length; m++) {
1320
+ let C = M(false, o, -1), c = a[m - 1];
1321
+ C.cells.push(c), c.includes(`
1322
+ `) && (C.hasLineBreak = true), n.quasis[m].value.raw.includes(`
1323
+ `) && o.push({ hasLineBreak: false, cells: [] });
1324
+ }
1325
+ let p = Math.max(s.length, ...o.map((m) => m.cells.length)), y = Array.from({ length: p }).fill(0), D = [{ cells: s }, ...o.filter((m) => m.cells.length > 0)];
1326
+ for (let { cells: m } of D.filter((C) => !C.hasLineBreak)) for (let [C, c] of m.entries()) y[C] = Math.max(y[C], tt(c));
1327
+ return i.push(ve, "`", f([F, b(F, D.map((m) => b(" | ", m.cells.map((C, c) => m.hasLineBreak ? C : C + " ".repeat(y[c] - tt(C))))))]), F, "`"), i;
1328
+ }
1329
+ }
1330
+ function kp(e, t) {
1331
+ let { node: r } = e, n = t();
1332
+ return T(r) && (n = l([f([E, n]), E])), ["${", n, ve, "}"];
1333
+ }
1334
+ function Yt(e, t) {
1335
+ return e.map((r) => kp(r, t), "expressions");
1336
+ }
1337
+ function Ur(e, t) {
1338
+ return mt(e, (r) => typeof r == "string" ? t ? N(false, r, /(\\*)`/gu, "$1$1\\`") : ns(r) : r);
1339
+ }
1340
+ function ns(e) {
1341
+ return N(false, e, /([\\`]|\$\{)/gu, String.raw`\$1`);
1342
+ }
1343
+ function Ip({ node: e, parent: t }) {
1344
+ let r = /^[fx]?(?:describe|it|test)$/u;
1345
+ return t.type === "TaggedTemplateExpression" && t.quasi === e && t.tag.type === "MemberExpression" && t.tag.property.type === "Identifier" && t.tag.property.name === "each" && (t.tag.object.type === "Identifier" && r.test(t.tag.object.name) || t.tag.object.type === "MemberExpression" && t.tag.object.property.type === "Identifier" && (t.tag.object.property.name === "only" || t.tag.object.property.name === "skip") && t.tag.object.object.type === "Identifier" && r.test(t.tag.object.object.name));
1346
+ }
1347
+ var us = [(e, t) => e.type === "ObjectExpression" && t === "properties", (e, t) => e.type === "CallExpression" && e.callee.type === "Identifier" && e.callee.name === "Component" && t === "arguments", (e, t) => e.type === "Decorator" && t === "expression"];
1348
+ function Hu(e) {
1349
+ let t = (n) => n.type === "TemplateLiteral", r = (n, s) => Ce(n) && !n.computed && n.key.type === "Identifier" && n.key.name === "styles" && s === "value";
1350
+ return e.match(t, (n, s) => Y(n) && s === "elements", r, ...us) || e.match(t, r, ...us);
1351
+ }
1352
+ function Vu(e) {
1353
+ return e.match((t) => t.type === "TemplateLiteral", (t, r) => Ce(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && r === "value", ...us);
1354
+ }
1355
+ function ss(e, t) {
1356
+ return T(e, h.Block | h.Leading, ({ value: r }) => r === ` ${t} `);
1357
+ }
1358
+ function Yr({ node: e, parent: t }, r) {
1359
+ return ss(e, r) || Lp(t) && ss(t, r) || t.type === "ExpressionStatement" && ss(t, r);
1360
+ }
1361
+ function Lp(e) {
1362
+ return e.type === "AsConstExpression" || e.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const";
1363
+ }
1364
+ async function wp(e, t, r) {
1365
+ let { node: n } = r, s = n.quasis.map((y) => y.value.raw), u = 0, i = s.reduce((y, D, m) => m === 0 ? D : y + "@prettier-placeholder-" + u++ + "-id" + D, ""), a = await e(i, { parser: "scss" }), o = Yt(r, t), p = Op(a, o);
1366
+ if (!p) throw new Error("Couldn't insert all the expressions");
1367
+ return ["`", f([F, p]), E, "`"];
1368
+ }
1369
+ function Op(e, t) {
1370
+ if (!O(t)) return e;
1371
+ let r = 0, n = mt(Gt(e), (s) => typeof s != "string" || !s.includes("@prettier-placeholder") ? s : s.split(/@prettier-placeholder-(\d+)-id/u).map((u, i) => i % 2 === 0 ? _e(u) : (r++, t[u])));
1372
+ return t.length === r ? n : null;
1373
+ }
1374
+ function _p({ node: e, parent: t, grandparent: r }) {
1375
+ return r && e.quasis && t.type === "JSXExpressionContainer" && r.type === "JSXElement" && r.openingElement.name.name === "style" && r.openingElement.attributes.some((n) => n.type === "JSXAttribute" && n.name.name === "jsx") || (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "css" || (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && t.tag.type === "MemberExpression" && t.tag.object.name === "css" && (t.tag.property.name === "global" || t.tag.property.name === "resolve");
1376
+ }
1377
+ function Nr(e) {
1378
+ return e.type === "Identifier" && e.name === "styled";
1379
+ }
1380
+ function $u(e) {
1381
+ return /^[A-Z]/u.test(e.object.name) && e.property.name === "extend";
1382
+ }
1383
+ function vp({ parent: e }) {
1384
+ if (!e || e.type !== "TaggedTemplateExpression") return false;
1385
+ let t = e.tag.type === "ParenthesizedExpression" ? e.tag.expression : e.tag;
1386
+ switch (t.type) {
1387
+ case "MemberExpression":
1388
+ return Nr(t.object) || $u(t);
1389
+ case "CallExpression":
1390
+ return Nr(t.callee) || t.callee.type === "MemberExpression" && (t.callee.object.type === "MemberExpression" && (Nr(t.callee.object.object) || $u(t.callee.object)) || t.callee.object.type === "CallExpression" && Nr(t.callee.object.callee));
1391
+ case "Identifier":
1392
+ return t.name === "css";
1393
+ default:
1394
+ return false;
1395
+ }
1396
+ }
1397
+ function jp({ parent: e, grandparent: t }) {
1398
+ return (t == null ? void 0 : t.type) === "JSXAttribute" && e.type === "JSXExpressionContainer" && t.name.type === "JSXIdentifier" && t.name.name === "css";
1399
+ }
1400
+ function Mp(e) {
1401
+ if (_p(e) || vp(e) || jp(e) || Hu(e)) return wp;
1402
+ }
1403
+ var Ku = Mp;
1404
+ async function Rp(e, t, r) {
1405
+ let { node: n } = r, s = n.quasis.length, u = Yt(r, t), i = [];
1406
+ for (let a = 0; a < s; a++) {
1407
+ let o = n.quasis[a], p = a === 0, y = a === s - 1, D = o.value.cooked, m = D.split(`
1408
+ `), C = m.length, c = u[a], A = C > 2 && m[0].trim() === "" && m[1].trim() === "", d = C > 2 && m[C - 1].trim() === "" && m[C - 2].trim() === "", S = m.every((_) => /^\s*(?:#[^\n\r]*)?$/u.test(_));
1409
+ if (!y && /#[^\n\r]*$/u.test(m[C - 1])) return null;
1410
+ let g = null;
1411
+ S ? g = Jp(m) : g = await e(D, { parser: "graphql" }), g ? (g = Ur(g, false), !p && A && i.push(""), i.push(g), !y && d && i.push("")) : !p && !y && A && i.push(""), c && i.push(c);
1412
+ }
1413
+ return ["`", f([F, b(F, i)]), F, "`"];
1414
+ }
1415
+ function Jp(e) {
1416
+ let t = [], r = false, n = e.map((s) => s.trim());
1417
+ for (let [s, u] of n.entries()) u !== "" && (n[s - 1] === "" && r ? t.push([F, u]) : t.push(u), r = true);
1418
+ return t.length === 0 ? null : b(F, t);
1419
+ }
1420
+ function qp({ node: e, parent: t }) {
1421
+ return Yr({ node: e, parent: t }, "GraphQL") || t && (t.type === "TaggedTemplateExpression" && (t.tag.type === "MemberExpression" && t.tag.object.name === "graphql" && t.tag.property.name === "experimental" || t.tag.type === "Identifier" && (t.tag.name === "gql" || t.tag.name === "graphql")) || t.type === "CallExpression" && t.callee.type === "Identifier" && t.callee.name === "graphql");
1422
+ }
1423
+ function Wp(e) {
1424
+ if (qp(e)) return Rp;
1425
+ }
1426
+ var Qu = Wp;
1427
+ var is = 0;
1428
+ async function zu(e, t, r, n, s) {
1429
+ let { node: u } = n, i = is;
1430
+ is = is + 1 >>> 0;
1431
+ let a = (S) => `PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`, o = u.quasis.map((S, g, _) => g === _.length - 1 ? S.value.cooked : S.value.cooked + a(g)).join(""), p = Yt(n, r), y = new RegExp(a(String.raw`(\d+)`), "gu"), D = 0, m = await t(o, { parser: e, __onHtmlRoot(S) {
1432
+ D = S.children.length;
1433
+ } }), C = mt(m, (S) => {
1434
+ if (typeof S != "string") return S;
1435
+ let g = [], _ = S.split(y);
1436
+ for (let v = 0; v < _.length; v++) {
1437
+ let j = _[v];
1438
+ if (v % 2 === 0) {
1439
+ j && (j = ns(j), s.__embeddedInHtml && (j = N(false, j, /<\/(?=script\b)/giu, String.raw`<\/`)), g.push(j));
1440
+ continue;
1441
+ }
1442
+ let I = Number(j);
1443
+ g.push(p[I]);
1444
+ }
1445
+ return g;
1446
+ }), c = /^\s/u.test(o) ? " " : "", A = /\s$/u.test(o) ? " " : "", d = s.htmlWhitespaceSensitivity === "ignore" ? F : c && A ? x : null;
1447
+ return d ? l(["`", f([d, l(C)]), d, "`"]) : st({ hug: false }, l(["`", c, D > 1 ? f(l(C)) : l(C), A, "`"]));
1448
+ }
1449
+ function Gp(e) {
1450
+ return Yr(e, "HTML") || e.match((t) => t.type === "TemplateLiteral", (t, r) => t.type === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "html" && r === "quasi");
1451
+ }
1452
+ var Up = zu.bind(void 0, "html"), Yp = zu.bind(void 0, "angular");
1453
+ function Np(e) {
1454
+ if (Gp(e)) return Up;
1455
+ if (Vu(e)) return Yp;
1456
+ }
1457
+ var Zu = Np;
1458
+ async function Xp(e, t, r) {
1459
+ let { node: n } = r, s = N(false, n.quasis[0].value.raw, /((?:\\\\)*)\\`/gu, (o, p) => "\\".repeat(p.length / 2) + "`"), u = Hp(s), i = u !== "";
1460
+ i && (s = N(false, s, new RegExp(`^${u}`, "gmu"), ""));
1461
+ let a = Ur(await e(s, { parser: "markdown", __inJsTemplate: true }), true);
1462
+ return ["`", i ? f([E, a]) : [Mr, ku(a)], E, "`"];
1463
+ }
1464
+ function Hp(e) {
1465
+ let t = e.match(/^([^\S\n]*)\S/mu);
1466
+ return t === null ? "" : t[1];
1467
+ }
1468
+ function Vp(e) {
1469
+ if ($p(e)) return Xp;
1470
+ }
1471
+ function $p({ node: e, parent: t }) {
1472
+ return (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && e.quasis.length === 1 && t.tag.type === "Identifier" && (t.tag.name === "md" || t.tag.name === "markdown");
1473
+ }
1474
+ var ei = Vp;
1475
+ function Kp(e) {
1476
+ let { node: t } = e;
1477
+ if (t.type !== "TemplateLiteral" || Qp(t)) return;
1478
+ let r;
1479
+ for (let n of [Ku, Qu, Zu, ei]) if (r = n(e), !!r) return t.quasis.length === 1 && t.quasis[0].value.raw.trim() === "" ? "``" : async (...s) => {
1480
+ let u = await r(...s);
1481
+ return u && st({ embed: true, ...u.label }, u);
1482
+ };
1483
+ }
1484
+ function Qp({ quasis: e }) {
1485
+ return e.some(({ value: { cooked: t } }) => t === null);
1486
+ }
1487
+ var ti = Kp;
1488
+ var zp = /\*\/$/, Zp = /^\/\*\*?/, ui = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, ec = /(^|\s+)\/\/([^\n\r]*)/g, ri = /^(\r?\n)+/, tc = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, ni = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, rc = /(\r?\n|^) *\* ?/g, ii = [];
1489
+ function ai(e) {
1490
+ let t = e.match(ui);
1491
+ return t ? t[0].trimStart() : "";
1492
+ }
1493
+ function oi(e) {
1494
+ let t = e.match(ui), r = t == null ? void 0 : t[0];
1495
+ return r == null ? e : e.slice(r.length);
1496
+ }
1497
+ function pi(e) {
1498
+ let t = `
1499
+ `;
1500
+ e = N(false, e.replace(Zp, "").replace(zp, ""), rc, "$1");
1501
+ let r = "";
1502
+ for (; r !== e; ) r = e, e = N(false, e, tc, `${t}$1 $2${t}`);
1503
+ e = e.replace(ri, "").trimEnd();
1504
+ let n = /* @__PURE__ */ Object.create(null), s = N(false, e, ni, "").replace(ri, "").trimEnd(), u;
1505
+ for (; u = ni.exec(e); ) {
1506
+ let i = N(false, u[2], ec, "");
1507
+ if (typeof n[u[1]] == "string" || Array.isArray(n[u[1]])) {
1508
+ let a = n[u[1]];
1509
+ n[u[1]] = [...ii, ...Array.isArray(a) ? a : [a], i];
1510
+ } else n[u[1]] = i;
1511
+ }
1512
+ return { comments: s, pragmas: n };
1513
+ }
1514
+ function ci({ comments: e = "", pragmas: t = {} }) {
1515
+ let r = `
1516
+ `, n = "/**", s = " *", u = " */", i = Object.keys(t), a = i.flatMap((p) => si(p, t[p])).map((p) => `${s} ${p}${r}`).join("");
1517
+ if (!e) {
1518
+ if (i.length === 0) return "";
1519
+ if (i.length === 1 && !Array.isArray(t[i[0]])) {
1520
+ let p = t[i[0]];
1521
+ return `${n} ${si(i[0], p)[0]}${u}`;
1522
+ }
1523
+ }
1524
+ let o = e.split(r).map((p) => `${s} ${p}`).join(r) + r;
1525
+ return n + r + (e ? o : "") + (e && i.length > 0 ? s + r : "") + a + u;
1526
+ }
1527
+ function si(e, t) {
1528
+ return [...ii, ...Array.isArray(t) ? t : [t]].map((r) => `@${e} ${r}`.trim());
1529
+ }
1530
+ function nc(e) {
1531
+ if (!e.startsWith("#!")) return "";
1532
+ let t = e.indexOf(`
1533
+ `);
1534
+ return t === -1 ? e : e.slice(0, t);
1535
+ }
1536
+ var li = nc;
1537
+ function sc(e) {
1538
+ let t = li(e);
1539
+ t && (e = e.slice(t.length + 1));
1540
+ let r = ai(e), { pragmas: n, comments: s } = pi(r);
1541
+ return { shebang: t, text: e, pragmas: n, comments: s };
1542
+ }
1543
+ function mi(e) {
1544
+ let { shebang: t, text: r, pragmas: n, comments: s } = sc(e), u = oi(r), i = ci({ pragmas: { format: "", ...n }, comments: s.trimStart() });
1545
+ return (t ? `${t}
1546
+ ` : "") + i + (u.startsWith(`
1547
+ `) ? `
1548
+ ` : `
1549
+
1550
+ `) + u;
1551
+ }
1552
+ function uc(e, t) {
1553
+ let { originalText: r, [Symbol.for("comments")]: n, locStart: s, locEnd: u, [Symbol.for("printedComments")]: i } = t, { node: a } = e, o = s(a), p = u(a);
1554
+ for (let y of n) s(y) >= o && u(y) <= p && i.add(y);
1555
+ return r.slice(o, p);
1556
+ }
1557
+ var yi = uc;
1558
+ function as(e, t) {
1559
+ var u, i, a, o, p, y, D, m, C;
1560
+ if (e.isRoot) return false;
1561
+ let { node: r, key: n, parent: s } = e;
1562
+ if (t.__isInHtmlInterpolation && !t.bracketSpacing && pc(r) && lr(e)) return true;
1563
+ if (ic(r)) return false;
1564
+ if (r.type === "Identifier") {
1565
+ if ((u = r.extra) != null && u.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name) || n === "left" && (r.name === "async" && !s.await || r.name === "let") && s.type === "ForOfStatement") return true;
1566
+ if (r.name === "let") {
1567
+ let c = (i = e.findAncestor((A) => A.type === "ForOfStatement")) == null ? void 0 : i.left;
1568
+ if (c && ae(c, (A) => A === r)) return true;
1569
+ }
1570
+ if (n === "object" && r.name === "let" && s.type === "MemberExpression" && s.computed && !s.optional) {
1571
+ let c = e.findAncestor((d) => d.type === "ExpressionStatement" || d.type === "ForStatement" || d.type === "ForInStatement"), A = c ? c.type === "ExpressionStatement" ? c.expression : c.type === "ForStatement" ? c.init : c.left : void 0;
1572
+ if (A && ae(A, (d) => d === r)) return true;
1573
+ }
1574
+ if (n === "expression") switch (r.name) {
1575
+ case "await":
1576
+ case "interface":
1577
+ case "module":
1578
+ case "using":
1579
+ case "yield":
1580
+ case "let":
1581
+ case "component":
1582
+ case "hook":
1583
+ case "type": {
1584
+ let c = e.findAncestor((A) => !Ae(A));
1585
+ if (c !== s && c.type === "ExpressionStatement") return true;
1586
+ }
1587
+ }
1588
+ return false;
1589
+ }
1590
+ if (r.type === "ObjectExpression" || r.type === "FunctionExpression" || r.type === "ClassExpression" || r.type === "DoExpression") {
1591
+ let c = (a = e.findAncestor((A) => A.type === "ExpressionStatement")) == null ? void 0 : a.expression;
1592
+ if (c && ae(c, (A) => A === r)) return true;
1593
+ }
1594
+ if (r.type === "ObjectExpression") {
1595
+ let c = (o = e.findAncestor((A) => A.type === "ArrowFunctionExpression")) == null ? void 0 : o.body;
1596
+ if (c && c.type !== "SequenceExpression" && c.type !== "AssignmentExpression" && ae(c, (A) => A === r)) return true;
1597
+ }
1598
+ switch (s.type) {
1599
+ case "ParenthesizedExpression":
1600
+ return false;
1601
+ case "ClassDeclaration":
1602
+ case "ClassExpression":
1603
+ if (n === "superClass" && (r.type === "ArrowFunctionExpression" || r.type === "AssignmentExpression" || r.type === "AwaitExpression" || r.type === "BinaryExpression" || r.type === "ConditionalExpression" || r.type === "LogicalExpression" || r.type === "NewExpression" || r.type === "ObjectExpression" || r.type === "SequenceExpression" || r.type === "TaggedTemplateExpression" || r.type === "UnaryExpression" || r.type === "UpdateExpression" || r.type === "YieldExpression" || r.type === "TSNonNullExpression" || r.type === "ClassExpression" && O(r.decorators))) return true;
1604
+ break;
1605
+ case "ExportDefaultDeclaration":
1606
+ return Di(e, t) || r.type === "SequenceExpression";
1607
+ case "Decorator":
1608
+ if (n === "expression" && !lc(r)) return true;
1609
+ break;
1610
+ case "TypeAnnotation":
1611
+ if (e.match(void 0, void 0, (c, A) => A === "returnType" && c.type === "ArrowFunctionExpression") && oc(r)) return true;
1612
+ break;
1613
+ case "BinaryExpression":
1614
+ if (n === "left" && (s.operator === "in" || s.operator === "instanceof") && r.type === "UnaryExpression") return true;
1615
+ break;
1616
+ case "VariableDeclarator":
1617
+ if (n === "init" && e.match(void 0, void 0, (c, A) => A === "declarations" && c.type === "VariableDeclaration", (c, A) => A === "left" && c.type === "ForInStatement")) return true;
1618
+ break;
1619
+ }
1620
+ switch (r.type) {
1621
+ case "UpdateExpression":
1622
+ if (s.type === "UnaryExpression") return r.prefix && (r.operator === "++" && s.operator === "+" || r.operator === "--" && s.operator === "-");
1623
+ case "UnaryExpression":
1624
+ switch (s.type) {
1625
+ case "UnaryExpression":
1626
+ return r.operator === s.operator && (r.operator === "+" || r.operator === "-");
1627
+ case "BindExpression":
1628
+ return true;
1629
+ case "MemberExpression":
1630
+ case "OptionalMemberExpression":
1631
+ return n === "object";
1632
+ case "TaggedTemplateExpression":
1633
+ return true;
1634
+ case "NewExpression":
1635
+ case "CallExpression":
1636
+ case "OptionalCallExpression":
1637
+ return n === "callee";
1638
+ case "BinaryExpression":
1639
+ return n === "left" && s.operator === "**";
1640
+ case "TSNonNullExpression":
1641
+ return true;
1642
+ default:
1643
+ return false;
1644
+ }
1645
+ case "BinaryExpression":
1646
+ if (s.type === "UpdateExpression" || r.operator === "in" && ac(e)) return true;
1647
+ if (r.operator === "|>" && ((p = r.extra) != null && p.parenthesized)) {
1648
+ let c = e.grandparent;
1649
+ if (c.type === "BinaryExpression" && c.operator === "|>") return true;
1650
+ }
1651
+ case "TSTypeAssertion":
1652
+ case "TSAsExpression":
1653
+ case "TSSatisfiesExpression":
1654
+ case "AsExpression":
1655
+ case "AsConstExpression":
1656
+ case "SatisfiesExpression":
1657
+ case "LogicalExpression":
1658
+ switch (s.type) {
1659
+ case "TSAsExpression":
1660
+ case "TSSatisfiesExpression":
1661
+ case "AsExpression":
1662
+ case "AsConstExpression":
1663
+ case "SatisfiesExpression":
1664
+ return !Ae(r);
1665
+ case "ConditionalExpression":
1666
+ return Ae(r) || cu(r);
1667
+ case "CallExpression":
1668
+ case "NewExpression":
1669
+ case "OptionalCallExpression":
1670
+ return n === "callee";
1671
+ case "ClassExpression":
1672
+ case "ClassDeclaration":
1673
+ return n === "superClass";
1674
+ case "TSTypeAssertion":
1675
+ case "TaggedTemplateExpression":
1676
+ case "UnaryExpression":
1677
+ case "JSXSpreadAttribute":
1678
+ case "SpreadElement":
1679
+ case "BindExpression":
1680
+ case "AwaitExpression":
1681
+ case "TSNonNullExpression":
1682
+ case "UpdateExpression":
1683
+ return true;
1684
+ case "MemberExpression":
1685
+ case "OptionalMemberExpression":
1686
+ return n === "object";
1687
+ case "AssignmentExpression":
1688
+ case "AssignmentPattern":
1689
+ return n === "left" && (r.type === "TSTypeAssertion" || Ae(r));
1690
+ case "LogicalExpression":
1691
+ if (r.type === "LogicalExpression") return s.operator !== r.operator;
1692
+ case "BinaryExpression": {
1693
+ let { operator: c, type: A } = r;
1694
+ if (!c && A !== "TSTypeAssertion") return true;
1695
+ let d = rr(c), S = s.operator, g = rr(S);
1696
+ return g > d || n === "right" && g === d || g === d && !ur(S, c) ? true : g < d && c === "%" ? S === "+" || S === "-" : !!Eu(S);
1697
+ }
1698
+ default:
1699
+ return false;
1700
+ }
1701
+ case "SequenceExpression":
1702
+ switch (s.type) {
1703
+ case "ReturnStatement":
1704
+ return false;
1705
+ case "ForStatement":
1706
+ return false;
1707
+ case "ExpressionStatement":
1708
+ return n !== "expression";
1709
+ case "ArrowFunctionExpression":
1710
+ return n !== "body";
1711
+ default:
1712
+ return true;
1713
+ }
1714
+ case "YieldExpression":
1715
+ if (s.type === "AwaitExpression" || s.type === "TSTypeAssertion") return true;
1716
+ case "AwaitExpression":
1717
+ switch (s.type) {
1718
+ case "TaggedTemplateExpression":
1719
+ case "UnaryExpression":
1720
+ case "LogicalExpression":
1721
+ case "SpreadElement":
1722
+ case "TSAsExpression":
1723
+ case "TSSatisfiesExpression":
1724
+ case "TSNonNullExpression":
1725
+ case "AsExpression":
1726
+ case "AsConstExpression":
1727
+ case "SatisfiesExpression":
1728
+ case "BindExpression":
1729
+ return true;
1730
+ case "MemberExpression":
1731
+ case "OptionalMemberExpression":
1732
+ return n === "object";
1733
+ case "NewExpression":
1734
+ case "CallExpression":
1735
+ case "OptionalCallExpression":
1736
+ return n === "callee";
1737
+ case "ConditionalExpression":
1738
+ return n === "test";
1739
+ case "BinaryExpression":
1740
+ return !(!r.argument && s.operator === "|>");
1741
+ default:
1742
+ return false;
1743
+ }
1744
+ case "TSFunctionType":
1745
+ if (e.match((c) => c.type === "TSFunctionType", (c, A) => A === "typeAnnotation" && c.type === "TSTypeAnnotation", (c, A) => A === "returnType" && c.type === "ArrowFunctionExpression")) return true;
1746
+ case "TSConditionalType":
1747
+ case "TSConstructorType":
1748
+ if (n === "extendsType" && s.type === "TSConditionalType") {
1749
+ if (r.type === "TSConditionalType") return true;
1750
+ let { typeAnnotation: c } = r.returnType || r.typeAnnotation;
1751
+ if (c.type === "TSTypePredicate" && c.typeAnnotation && (c = c.typeAnnotation.typeAnnotation), c.type === "TSInferType" && c.typeParameter.constraint) return true;
1752
+ }
1753
+ if (n === "checkType" && s.type === "TSConditionalType") return true;
1754
+ case "TSUnionType":
1755
+ case "TSIntersectionType":
1756
+ if ((s.type === "TSUnionType" || s.type === "TSIntersectionType") && s.types.length > 1 && (!r.types || r.types.length > 1)) return true;
1757
+ case "TSInferType":
1758
+ if (r.type === "TSInferType") {
1759
+ if (s.type === "TSRestType") return false;
1760
+ if (n === "types" && (s.type === "TSUnionType" || s.type === "TSIntersectionType") && r.typeParameter.type === "TSTypeParameter" && r.typeParameter.constraint) return true;
1761
+ }
1762
+ case "TSTypeOperator":
1763
+ return s.type === "TSArrayType" || s.type === "TSOptionalType" || s.type === "TSRestType" || n === "objectType" && s.type === "TSIndexedAccessType" || s.type === "TSTypeOperator" || s.type === "TSTypeAnnotation" && e.grandparent.type.startsWith("TSJSDoc");
1764
+ case "TSTypeQuery":
1765
+ return n === "objectType" && s.type === "TSIndexedAccessType" || n === "elementType" && s.type === "TSArrayType";
1766
+ case "TypeOperator":
1767
+ return s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || s.type === "TypeOperator";
1768
+ case "TypeofTypeAnnotation":
1769
+ return n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || n === "elementType" && s.type === "ArrayTypeAnnotation";
1770
+ case "ArrayTypeAnnotation":
1771
+ return s.type === "NullableTypeAnnotation";
1772
+ case "IntersectionTypeAnnotation":
1773
+ case "UnionTypeAnnotation":
1774
+ return s.type === "TypeOperator" || s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || s.type === "IntersectionTypeAnnotation" || s.type === "UnionTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1775
+ case "InferTypeAnnotation":
1776
+ case "NullableTypeAnnotation":
1777
+ return s.type === "ArrayTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1778
+ case "ComponentTypeAnnotation":
1779
+ case "FunctionTypeAnnotation": {
1780
+ if (r.type === "ComponentTypeAnnotation" && (r.rendersType === null || r.rendersType === void 0)) return false;
1781
+ if (e.match(void 0, (A, d) => d === "typeAnnotation" && A.type === "TypeAnnotation", (A, d) => d === "returnType" && A.type === "ArrowFunctionExpression") || e.match(void 0, (A, d) => d === "typeAnnotation" && A.type === "TypePredicate", (A, d) => d === "typeAnnotation" && A.type === "TypeAnnotation", (A, d) => d === "returnType" && A.type === "ArrowFunctionExpression")) return true;
1782
+ let c = s.type === "NullableTypeAnnotation" ? e.grandparent : s;
1783
+ return c.type === "UnionTypeAnnotation" || c.type === "IntersectionTypeAnnotation" || c.type === "ArrayTypeAnnotation" || n === "objectType" && (c.type === "IndexedAccessType" || c.type === "OptionalIndexedAccessType") || n === "checkType" && s.type === "ConditionalTypeAnnotation" || n === "extendsType" && s.type === "ConditionalTypeAnnotation" && ((y = r.returnType) == null ? void 0 : y.type) === "InferTypeAnnotation" && ((D = r.returnType) == null ? void 0 : D.typeParameter.bound) || c.type === "NullableTypeAnnotation" || s.type === "FunctionTypeParam" && s.name === null && z(r).some((A) => {
1784
+ var d;
1785
+ return ((d = A.typeAnnotation) == null ? void 0 : d.type) === "NullableTypeAnnotation";
1786
+ });
1787
+ }
1788
+ case "ConditionalTypeAnnotation":
1789
+ if (n === "extendsType" && s.type === "ConditionalTypeAnnotation" && r.type === "ConditionalTypeAnnotation" || n === "checkType" && s.type === "ConditionalTypeAnnotation") return true;
1790
+ case "OptionalIndexedAccessType":
1791
+ return n === "objectType" && s.type === "IndexedAccessType";
1792
+ case "StringLiteral":
1793
+ case "NumericLiteral":
1794
+ case "Literal":
1795
+ if (typeof r.value == "string" && s.type === "ExpressionStatement" && !s.directive) {
1796
+ let c = e.grandparent;
1797
+ return c.type === "Program" || c.type === "BlockStatement";
1798
+ }
1799
+ return n === "object" && s.type === "MemberExpression" && typeof r.value == "number";
1800
+ case "AssignmentExpression": {
1801
+ let c = e.grandparent;
1802
+ return n === "body" && s.type === "ArrowFunctionExpression" ? true : n === "key" && (s.type === "ClassProperty" || s.type === "PropertyDefinition") && s.computed || (n === "init" || n === "update") && s.type === "ForStatement" ? false : s.type === "ExpressionStatement" ? r.left.type === "ObjectPattern" : !(n === "key" && s.type === "TSPropertySignature" || s.type === "AssignmentExpression" || s.type === "SequenceExpression" && c.type === "ForStatement" && (c.init === s || c.update === s) || n === "value" && s.type === "Property" && c.type === "ObjectPattern" && c.properties.includes(s) || s.type === "NGChainedExpression" || n === "node" && s.type === "JsExpressionRoot");
1803
+ }
1804
+ case "ConditionalExpression":
1805
+ switch (s.type) {
1806
+ case "TaggedTemplateExpression":
1807
+ case "UnaryExpression":
1808
+ case "SpreadElement":
1809
+ case "BinaryExpression":
1810
+ case "LogicalExpression":
1811
+ case "NGPipeExpression":
1812
+ case "ExportDefaultDeclaration":
1813
+ case "AwaitExpression":
1814
+ case "JSXSpreadAttribute":
1815
+ case "TSTypeAssertion":
1816
+ case "TypeCastExpression":
1817
+ case "TSAsExpression":
1818
+ case "TSSatisfiesExpression":
1819
+ case "AsExpression":
1820
+ case "AsConstExpression":
1821
+ case "SatisfiesExpression":
1822
+ case "TSNonNullExpression":
1823
+ return true;
1824
+ case "NewExpression":
1825
+ case "CallExpression":
1826
+ case "OptionalCallExpression":
1827
+ return n === "callee";
1828
+ case "ConditionalExpression":
1829
+ return t.experimentalTernaries ? false : n === "test";
1830
+ case "MemberExpression":
1831
+ case "OptionalMemberExpression":
1832
+ return n === "object";
1833
+ default:
1834
+ return false;
1835
+ }
1836
+ case "FunctionExpression":
1837
+ switch (s.type) {
1838
+ case "NewExpression":
1839
+ case "CallExpression":
1840
+ case "OptionalCallExpression":
1841
+ return n === "callee";
1842
+ case "TaggedTemplateExpression":
1843
+ return true;
1844
+ default:
1845
+ return false;
1846
+ }
1847
+ case "ArrowFunctionExpression":
1848
+ switch (s.type) {
1849
+ case "BinaryExpression":
1850
+ return s.operator !== "|>" || ((m = r.extra) == null ? void 0 : m.parenthesized);
1851
+ case "NewExpression":
1852
+ case "CallExpression":
1853
+ case "OptionalCallExpression":
1854
+ return n === "callee";
1855
+ case "MemberExpression":
1856
+ case "OptionalMemberExpression":
1857
+ return n === "object";
1858
+ case "TSAsExpression":
1859
+ case "TSSatisfiesExpression":
1860
+ case "AsExpression":
1861
+ case "AsConstExpression":
1862
+ case "SatisfiesExpression":
1863
+ case "TSNonNullExpression":
1864
+ case "BindExpression":
1865
+ case "TaggedTemplateExpression":
1866
+ case "UnaryExpression":
1867
+ case "LogicalExpression":
1868
+ case "AwaitExpression":
1869
+ case "TSTypeAssertion":
1870
+ return true;
1871
+ case "ConditionalExpression":
1872
+ return n === "test";
1873
+ default:
1874
+ return false;
1875
+ }
1876
+ case "ClassExpression":
1877
+ switch (s.type) {
1878
+ case "NewExpression":
1879
+ return n === "callee";
1880
+ default:
1881
+ return false;
1882
+ }
1883
+ case "OptionalMemberExpression":
1884
+ case "OptionalCallExpression":
1885
+ case "CallExpression":
1886
+ case "MemberExpression":
1887
+ if (cc(e)) return true;
1888
+ case "TaggedTemplateExpression":
1889
+ case "TSNonNullExpression":
1890
+ if (n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression")) {
1891
+ let c = r;
1892
+ for (; c; ) switch (c.type) {
1893
+ case "CallExpression":
1894
+ case "OptionalCallExpression":
1895
+ return true;
1896
+ case "MemberExpression":
1897
+ case "OptionalMemberExpression":
1898
+ case "BindExpression":
1899
+ c = c.object;
1900
+ break;
1901
+ case "TaggedTemplateExpression":
1902
+ c = c.tag;
1903
+ break;
1904
+ case "TSNonNullExpression":
1905
+ c = c.expression;
1906
+ break;
1907
+ default:
1908
+ return false;
1909
+ }
1910
+ }
1911
+ return false;
1912
+ case "BindExpression":
1913
+ return n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression") || n === "object" && W(s);
1914
+ case "NGPipeExpression":
1915
+ return !(s.type === "NGRoot" || s.type === "NGMicrosyntaxExpression" || s.type === "ObjectProperty" && !((C = r.extra) != null && C.parenthesized) || Y(s) || n === "arguments" && L(s) || n === "right" && s.type === "NGPipeExpression" || n === "property" && s.type === "MemberExpression" || s.type === "AssignmentExpression");
1916
+ case "JSXFragment":
1917
+ case "JSXElement":
1918
+ return n === "callee" || n === "left" && s.type === "BinaryExpression" && s.operator === "<" || !Y(s) && s.type !== "ArrowFunctionExpression" && s.type !== "AssignmentExpression" && s.type !== "AssignmentPattern" && s.type !== "BinaryExpression" && s.type !== "NewExpression" && s.type !== "ConditionalExpression" && s.type !== "ExpressionStatement" && s.type !== "JsExpressionRoot" && s.type !== "JSXAttribute" && s.type !== "JSXElement" && s.type !== "JSXExpressionContainer" && s.type !== "JSXFragment" && s.type !== "LogicalExpression" && !L(s) && !Ce(s) && s.type !== "ReturnStatement" && s.type !== "ThrowStatement" && s.type !== "TypeCastExpression" && s.type !== "VariableDeclarator" && s.type !== "YieldExpression";
1919
+ case "TSInstantiationExpression":
1920
+ return n === "object" && W(s);
1921
+ }
1922
+ return false;
1923
+ }
1924
+ var ic = R(["BlockStatement", "BreakStatement", "ComponentDeclaration", "ClassBody", "ClassDeclaration", "ClassMethod", "ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ContinueStatement", "DebuggerStatement", "DeclareComponent", "DeclareClass", "DeclareExportAllDeclaration", "DeclareExportDeclaration", "DeclareFunction", "DeclareHook", "DeclareInterface", "DeclareModule", "DeclareModuleExports", "DeclareNamespace", "DeclareVariable", "DeclareEnum", "DoWhileStatement", "EnumDeclaration", "ExportAllDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FunctionDeclaration", "HookDeclaration", "IfStatement", "ImportDeclaration", "InterfaceDeclaration", "LabeledStatement", "MethodDefinition", "ReturnStatement", "SwitchStatement", "ThrowStatement", "TryStatement", "TSDeclareFunction", "TSEnumDeclaration", "TSImportEqualsDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSNamespaceExportDeclaration", "TypeAlias", "VariableDeclaration", "WhileStatement", "WithStatement"]);
1925
+ function ac(e) {
1926
+ let t = 0, { node: r } = e;
1927
+ for (; r; ) {
1928
+ let n = e.getParentNode(t++);
1929
+ if ((n == null ? void 0 : n.type) === "ForStatement" && n.init === r) return true;
1930
+ r = n;
1931
+ }
1932
+ return false;
1933
+ }
1934
+ function oc(e) {
1935
+ return nr(e, (t) => t.type === "ObjectTypeAnnotation" && nr(t, (r) => r.type === "FunctionTypeAnnotation"));
1936
+ }
1937
+ function pc(e) {
1938
+ return se(e);
1939
+ }
1940
+ function lr(e) {
1941
+ let { parent: t, key: r } = e;
1942
+ switch (t.type) {
1943
+ case "NGPipeExpression":
1944
+ if (r === "arguments" && e.isLast) return e.callParent(lr);
1945
+ break;
1946
+ case "ObjectProperty":
1947
+ if (r === "value") return e.callParent(() => e.key === "properties" && e.isLast);
1948
+ break;
1949
+ case "BinaryExpression":
1950
+ case "LogicalExpression":
1951
+ if (r === "right") return e.callParent(lr);
1952
+ break;
1953
+ case "ConditionalExpression":
1954
+ if (r === "alternate") return e.callParent(lr);
1955
+ break;
1956
+ case "UnaryExpression":
1957
+ if (t.prefix) return e.callParent(lr);
1958
+ break;
1959
+ }
1960
+ return false;
1961
+ }
1962
+ function Di(e, t) {
1963
+ let { node: r, parent: n } = e;
1964
+ return r.type === "FunctionExpression" || r.type === "ClassExpression" ? n.type === "ExportDefaultDeclaration" || !as(e, t) : !Rt(r) || n.type !== "ExportDefaultDeclaration" && as(e, t) ? false : e.call(() => Di(e, t), ...kr(r));
1965
+ }
1966
+ function cc(e) {
1967
+ return !!(e.match(void 0, (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match(void 0, (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match(void 0, (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && (t.type === "CallExpression" || t.type === "NewExpression")) || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression") || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, r) => r === "expression" && t.type === "ChainExpression") && (e.match(void 0, void 0, (t, r) => r === "callee" && (t.type === "CallExpression" && !t.optional || t.type === "NewExpression") || r === "object" && t.type === "MemberExpression" && !t.optional) || e.match(void 0, void 0, (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression")) || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression"));
1968
+ }
1969
+ function os(e) {
1970
+ return e.type === "Identifier" ? true : W(e) ? !e.computed && !e.optional && e.property.type === "Identifier" && os(e.object) : false;
1971
+ }
1972
+ function lc(e) {
1973
+ return e.type === "ChainExpression" && (e = e.expression), os(e) || L(e) && !e.optional && os(e.callee);
1974
+ }
1975
+ var ke = as;
1976
+ function mc(e, t) {
1977
+ let r = t - 1;
1978
+ r = Ye(e, r, { backwards: true }), r = Ne(e, r, { backwards: true }), r = Ye(e, r, { backwards: true });
1979
+ let n = Ne(e, r, { backwards: true });
1980
+ return r !== n;
1981
+ }
1982
+ var fi = mc;
1983
+ var yc = () => true;
1984
+ function ps(e, t) {
1985
+ let r = e.node;
1986
+ return r.printed = true, t.printer.printComment(e, t);
1987
+ }
1988
+ function Dc(e, t) {
1989
+ var y;
1990
+ let r = e.node, n = [ps(e, t)], { printer: s, originalText: u, locStart: i, locEnd: a } = t;
1991
+ if ((y = s.isBlockComment) == null ? void 0 : y.call(s, r)) {
1992
+ let D = Z(u, a(r)) ? Z(u, i(r), { backwards: true }) ? F : x : " ";
1993
+ n.push(D);
1994
+ } else n.push(F);
1995
+ let p = Ne(u, Ye(u, a(r)));
1996
+ return p !== false && Z(u, p) && n.push(F), n;
1997
+ }
1998
+ function fc(e, t, r) {
1999
+ var p;
2000
+ let n = e.node, s = ps(e, t), { printer: u, originalText: i, locStart: a } = t, o = (p = u.isBlockComment) == null ? void 0 : p.call(u, n);
2001
+ if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || Z(i, a(n), { backwards: true })) {
2002
+ let y = fi(i, a(n));
2003
+ return { doc: Un([F, y ? F : "", s]), isBlock: o, hasLineSuffix: true };
2004
+ }
2005
+ return !o || r != null && r.hasLineSuffix ? { doc: [Un([" ", s]), Ee], isBlock: o, hasLineSuffix: true } : { doc: [" ", s], isBlock: o, hasLineSuffix: false };
2006
+ }
2007
+ function J(e, t, r = {}) {
2008
+ let { node: n } = e;
2009
+ if (!O(n == null ? void 0 : n.comments)) return "";
2010
+ let { indent: s = false, marker: u, filter: i = yc } = r, a = [];
2011
+ if (e.each(({ node: p }) => {
2012
+ p.leading || p.trailing || p.marker !== u || !i(p) || a.push(ps(e, t));
2013
+ }, "comments"), a.length === 0) return "";
2014
+ let o = b(F, a);
2015
+ return s ? f([F, o]) : o;
2016
+ }
2017
+ function cs(e, t) {
2018
+ let r = e.node;
2019
+ if (!r) return {};
2020
+ let n = t[Symbol.for("printedComments")];
2021
+ if ((r.comments || []).filter((o) => !n.has(o)).length === 0) return { leading: "", trailing: "" };
2022
+ let u = [], i = [], a;
2023
+ return e.each(() => {
2024
+ let o = e.node;
2025
+ if (n != null && n.has(o)) return;
2026
+ let { leading: p, trailing: y } = o;
2027
+ p ? u.push(Dc(e, t)) : y && (a = fc(e, t, a), i.push(a.doc));
2028
+ }, "comments"), { leading: u, trailing: i };
2029
+ }
2030
+ function ye(e, t, r) {
2031
+ let { leading: n, trailing: s } = cs(e, r);
2032
+ return !n && !s ? t : pr(t, (u) => [n, u, s]);
2033
+ }
2034
+ var ls = class extends Error {
2035
+ name = "UnexpectedNodeError";
2036
+ constructor(t, r, n = "type") {
2037
+ super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`), this.node = t;
2038
+ }
2039
+ }, qe = ls;
2040
+ function ms(e) {
2041
+ if (typeof e != "string") throw new TypeError("Expected a string");
2042
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2043
+ }
2044
+ var We, ys = class {
2045
+ constructor(t) {
2046
+ Us(this, We);
2047
+ Ys(this, We, new Set(t));
2048
+ }
2049
+ getLeadingWhitespaceCount(t) {
2050
+ let r = pt(this, We), n = 0;
2051
+ for (let s = 0; s < t.length && r.has(t.charAt(s)); s++) n++;
2052
+ return n;
2053
+ }
2054
+ getTrailingWhitespaceCount(t) {
2055
+ let r = pt(this, We), n = 0;
2056
+ for (let s = t.length - 1; s >= 0 && r.has(t.charAt(s)); s--) n++;
2057
+ return n;
2058
+ }
2059
+ getLeadingWhitespace(t) {
2060
+ let r = this.getLeadingWhitespaceCount(t);
2061
+ return t.slice(0, r);
2062
+ }
2063
+ getTrailingWhitespace(t) {
2064
+ let r = this.getTrailingWhitespaceCount(t);
2065
+ return t.slice(t.length - r);
2066
+ }
2067
+ hasLeadingWhitespace(t) {
2068
+ return pt(this, We).has(t.charAt(0));
2069
+ }
2070
+ hasTrailingWhitespace(t) {
2071
+ return pt(this, We).has(M(false, t, -1));
2072
+ }
2073
+ trimStart(t) {
2074
+ let r = this.getLeadingWhitespaceCount(t);
2075
+ return t.slice(r);
2076
+ }
2077
+ trimEnd(t) {
2078
+ let r = this.getTrailingWhitespaceCount(t);
2079
+ return t.slice(0, t.length - r);
2080
+ }
2081
+ trim(t) {
2082
+ return this.trimEnd(this.trimStart(t));
2083
+ }
2084
+ split(t, r = false) {
2085
+ let n = `[${ms([...pt(this, We)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
2086
+ return t.split(s);
2087
+ }
2088
+ hasWhitespaceCharacter(t) {
2089
+ let r = pt(this, We);
2090
+ return Array.prototype.some.call(t, (n) => r.has(n));
2091
+ }
2092
+ hasNonWhitespaceCharacter(t) {
2093
+ let r = pt(this, We);
2094
+ return Array.prototype.some.call(t, (n) => !r.has(n));
2095
+ }
2096
+ isWhitespaceOnly(t) {
2097
+ let r = pt(this, We);
2098
+ return Array.prototype.every.call(t, (n) => r.has(n));
2099
+ }
2100
+ };
2101
+ We = /* @__PURE__ */ new WeakMap();
2102
+ var Ei = ys;
2103
+ var Xr = new Ei(`
2104
+ \r `), Ds = (e) => e === "" || e === x || e === F || e === E;
2105
+ function Ec(e, t, r) {
2106
+ var _, v, j, I, U;
2107
+ let { node: n } = e;
2108
+ if (n.type === "JSXElement" && Ic(n)) return [r("openingElement"), r("closingElement")];
2109
+ let s = n.type === "JSXElement" ? r("openingElement") : r("openingFragment"), u = n.type === "JSXElement" ? r("closingElement") : r("closingFragment");
2110
+ if (n.children.length === 1 && n.children[0].type === "JSXExpressionContainer" && (n.children[0].expression.type === "TemplateLiteral" || n.children[0].expression.type === "TaggedTemplateExpression")) return [s, ...e.map(r, "children"), u];
2111
+ n.children = n.children.map((P) => Lc(P) ? { type: "JSXText", value: " ", raw: " " } : P);
2112
+ let i = n.children.some(X), a = n.children.filter((P) => P.type === "JSXExpressionContainer").length > 1, o = n.type === "JSXElement" && n.openingElement.attributes.length > 1, p = re(s) || i || o || a, y = e.parent.rootMarker === "mdx", D = t.singleQuote ? "{' '}" : '{" "}', m = y ? x : B([D, E], " "), C = ((v = (_ = n.openingElement) == null ? void 0 : _.name) == null ? void 0 : v.name) === "fbt", c = Fc(e, t, r, m, C), A = n.children.some((P) => mr(P));
2113
+ for (let P = c.length - 2; P >= 0; P--) {
2114
+ let G = c[P] === "" && c[P + 1] === "", ue = c[P] === F && c[P + 1] === "" && c[P + 2] === F, Q = (c[P] === E || c[P] === F) && c[P + 1] === "" && c[P + 2] === m, St = c[P] === m && c[P + 1] === "" && (c[P + 2] === E || c[P + 2] === F), Ft = c[P] === m && c[P + 1] === "" && c[P + 2] === m, w = c[P] === E && c[P + 1] === "" && c[P + 2] === F || c[P] === F && c[P + 1] === "" && c[P + 2] === E;
2115
+ ue && A || G || Q || Ft || w ? c.splice(P, 2) : St && c.splice(P + 1, 2);
2116
+ }
2117
+ for (; c.length > 0 && Ds(M(false, c, -1)); ) c.pop();
2118
+ for (; c.length > 1 && Ds(c[0]) && Ds(c[1]); ) c.shift(), c.shift();
2119
+ let d = [""];
2120
+ for (let [P, G] of c.entries()) {
2121
+ if (G === m) {
2122
+ if (P === 1 && bu(c[P - 1])) {
2123
+ if (c.length === 2) {
2124
+ d.push([d.pop(), D]);
2125
+ continue;
2126
+ }
2127
+ d.push([D, F], "");
2128
+ continue;
2129
+ } else if (P === c.length - 1) {
2130
+ d.push([d.pop(), D]);
2131
+ continue;
2132
+ } else if (c[P - 1] === "" && c[P - 2] === F) {
2133
+ d.push([d.pop(), D]);
2134
+ continue;
2135
+ }
2136
+ }
2137
+ P % 2 === 0 ? d.push([d.pop(), G]) : d.push(G, ""), re(G) && (p = true);
2138
+ }
2139
+ let S = A ? Jr(d) : l(d, { shouldBreak: true });
2140
+ if (((j = t.cursorNode) == null ? void 0 : j.type) === "JSXText" && n.children.includes(t.cursorNode) ? S = [cr, S, cr] : ((I = t.nodeBeforeCursor) == null ? void 0 : I.type) === "JSXText" && n.children.includes(t.nodeBeforeCursor) ? S = [cr, S] : ((U = t.nodeAfterCursor) == null ? void 0 : U.type) === "JSXText" && n.children.includes(t.nodeAfterCursor) && (S = [S, cr]), y) return S;
2141
+ let g = l([s, f([F, S]), F, u]);
2142
+ return p ? g : Ze([l([s, ...c, u]), g]);
2143
+ }
2144
+ function Fc(e, t, r, n, s) {
2145
+ let u = "", i = [u];
2146
+ function a(p) {
2147
+ u = p, i.push([i.pop(), p]);
2148
+ }
2149
+ function o(p) {
2150
+ p !== "" && (u = p, i.push(p, ""));
2151
+ }
2152
+ return e.each(({ node: p, next: y }) => {
2153
+ if (p.type === "JSXText") {
2154
+ let D = fe(p);
2155
+ if (mr(p)) {
2156
+ let m = Xr.split(D, true);
2157
+ m[0] === "" && (m.shift(), /\n/u.test(m[0]) ? o(Ci(s, m[1], p, y)) : o(n), m.shift());
2158
+ let C;
2159
+ if (M(false, m, -1) === "" && (m.pop(), C = m.pop()), m.length === 0) return;
2160
+ for (let [c, A] of m.entries()) c % 2 === 1 ? o(x) : a(A);
2161
+ C !== void 0 ? /\n/u.test(C) ? o(Ci(s, u, p, y)) : o(n) : o(Fi(s, u, p, y));
2162
+ } else /\n/u.test(D) ? D.match(/\n/gu).length > 1 && o(F) : o(n);
2163
+ } else {
2164
+ let D = r();
2165
+ if (a(D), y && mr(y)) {
2166
+ let C = Xr.trim(fe(y)), [c] = Xr.split(C);
2167
+ o(Fi(s, c, p, y));
2168
+ } else o(F);
2169
+ }
2170
+ }, "children"), i;
2171
+ }
2172
+ function Fi(e, t, r, n) {
2173
+ return e ? "" : r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? t.length === 1 ? E : F : E;
2174
+ }
2175
+ function Ci(e, t, r, n) {
2176
+ return e ? F : t.length === 1 ? r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? F : E : F;
2177
+ }
2178
+ var Cc = /* @__PURE__ */ new Set(["ArrayExpression", "TupleExpression", "JSXAttribute", "JSXElement", "JSXExpressionContainer", "JSXFragment", "ExpressionStatement", "CallExpression", "OptionalCallExpression", "ConditionalExpression", "JsExpressionRoot"]);
2179
+ function Ac(e, t, r) {
2180
+ let { parent: n } = e;
2181
+ if (Cc.has(n.type)) return t;
2182
+ let s = e.match(void 0, (i) => i.type === "ArrowFunctionExpression", L, (i) => i.type === "JSXExpressionContainer"), u = ke(e, r);
2183
+ return l([u ? "" : B("("), f([E, t]), E, u ? "" : B(")")], { shouldBreak: s });
2184
+ }
2185
+ function Tc(e, t, r) {
2186
+ let { node: n } = e, s = [];
2187
+ if (s.push(r("name")), n.value) {
2188
+ let u;
2189
+ if (te(n.value)) {
2190
+ let i = fe(n.value), a = N(false, N(false, i.slice(1, -1), "&apos;", "'"), "&quot;", '"'), o = hr(a, t.jsxSingleQuote);
2191
+ a = o === '"' ? N(false, a, '"', "&quot;") : N(false, a, "'", "&apos;"), u = e.call(() => ye(e, _e(o + a + o), t), "value");
2192
+ } else u = r("value");
2193
+ s.push("=", u);
2194
+ }
2195
+ return s;
2196
+ }
2197
+ function dc(e, t, r) {
2198
+ let { node: n } = e, s = (u, i) => u.type === "JSXEmptyExpression" || !T(u) && (Y(u) || se(u) || u.type === "ArrowFunctionExpression" || u.type === "AwaitExpression" && (s(u.argument, u) || u.argument.type === "JSXElement") || L(u) || u.type === "ChainExpression" && L(u.expression) || u.type === "FunctionExpression" || u.type === "TemplateLiteral" || u.type === "TaggedTemplateExpression" || u.type === "DoExpression" || X(i) && (u.type === "ConditionalExpression" || De(u)));
2199
+ return s(n.expression, e.parent) ? l(["{", r("expression"), ve, "}"]) : l(["{", f([E, r("expression")]), E, ve, "}"]);
2200
+ }
2201
+ function xc(e, t, r) {
2202
+ var a, o;
2203
+ let { node: n } = e, s = T(n.name) || T(n.typeParameters) || T(n.typeArguments);
2204
+ if (n.selfClosing && n.attributes.length === 0 && !s) return ["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " />"];
2205
+ if (((a = n.attributes) == null ? void 0 : a.length) === 1 && te(n.attributes[0].value) && !n.attributes[0].value.value.includes(`
2206
+ `) && !s && !T(n.attributes[0])) return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " ", ...e.map(r, "attributes"), n.selfClosing ? " />" : ">"]);
2207
+ let u = (o = n.attributes) == null ? void 0 : o.some((p) => te(p.value) && p.value.value.includes(`
2208
+ `)), i = t.singleAttributePerLine && n.attributes.length > 1 ? F : x;
2209
+ return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), f(e.map(() => [i, r()], "attributes")), ...hc(n, t, s)], { shouldBreak: u });
2210
+ }
2211
+ function hc(e, t, r) {
2212
+ return e.selfClosing ? [x, "/>"] : gc(e, t, r) ? [">"] : [E, ">"];
2213
+ }
2214
+ function gc(e, t, r) {
2215
+ let n = e.attributes.length > 0 && T(M(false, e.attributes, -1), h.Trailing);
2216
+ return e.attributes.length === 0 && !r || (t.bracketSameLine || t.jsxBracketSameLine) && (!r || e.attributes.length > 0) && !n;
2217
+ }
2218
+ function Sc(e, t, r) {
2219
+ let { node: n } = e, s = [];
2220
+ s.push("</");
2221
+ let u = r("name");
2222
+ return T(n.name, h.Leading | h.Line) ? s.push(f([F, u]), F) : T(n.name, h.Leading | h.Block) ? s.push(" ", u) : s.push(u), s.push(">"), s;
2223
+ }
2224
+ function Bc(e, t) {
2225
+ let { node: r } = e, n = T(r), s = T(r, h.Line), u = r.type === "JSXOpeningFragment";
2226
+ return [u ? "<" : "</", f([s ? F : n && !u ? " " : "", J(e, t)]), s ? F : "", ">"];
2227
+ }
2228
+ function bc(e, t, r) {
2229
+ let n = ye(e, Ec(e, t, r), t);
2230
+ return Ac(e, n, t);
2231
+ }
2232
+ function Pc(e, t) {
2233
+ let { node: r } = e, n = T(r, h.Line);
2234
+ return [J(e, t, { indent: n }), n ? F : ""];
2235
+ }
2236
+ function kc(e, t, r) {
2237
+ let { node: n } = e;
2238
+ return ["{", e.call(({ node: s }) => {
2239
+ let u = ["...", r()];
2240
+ return !T(s) || !zn(e) ? u : [f([E, ye(e, u, t)]), E];
2241
+ }, n.type === "JSXSpreadAttribute" ? "argument" : "expression"), "}"];
2242
+ }
2243
+ function Ai(e, t, r) {
2244
+ let { node: n } = e;
2245
+ if (n.type.startsWith("JSX")) switch (n.type) {
2246
+ case "JSXAttribute":
2247
+ return Tc(e, t, r);
2248
+ case "JSXIdentifier":
2249
+ return n.name;
2250
+ case "JSXNamespacedName":
2251
+ return b(":", [r("namespace"), r("name")]);
2252
+ case "JSXMemberExpression":
2253
+ return b(".", [r("object"), r("property")]);
2254
+ case "JSXSpreadAttribute":
2255
+ case "JSXSpreadChild":
2256
+ return kc(e, t, r);
2257
+ case "JSXExpressionContainer":
2258
+ return dc(e, t, r);
2259
+ case "JSXFragment":
2260
+ case "JSXElement":
2261
+ return bc(e, t, r);
2262
+ case "JSXOpeningElement":
2263
+ return xc(e, t, r);
2264
+ case "JSXClosingElement":
2265
+ return Sc(e, t, r);
2266
+ case "JSXOpeningFragment":
2267
+ case "JSXClosingFragment":
2268
+ return Bc(e, t);
2269
+ case "JSXEmptyExpression":
2270
+ return Pc(e, t);
2271
+ case "JSXText":
2272
+ throw new Error("JSXText should be handled by JSXElement");
2273
+ default:
2274
+ throw new qe(n, "JSX");
2275
+ }
2276
+ }
2277
+ function Ic(e) {
2278
+ if (e.children.length === 0) return true;
2279
+ if (e.children.length > 1) return false;
2280
+ let t = e.children[0];
2281
+ return t.type === "JSXText" && !mr(t);
2282
+ }
2283
+ function mr(e) {
2284
+ return e.type === "JSXText" && (Xr.hasNonWhitespaceCharacter(fe(e)) || !/\n/u.test(fe(e)));
2285
+ }
2286
+ function Lc(e) {
2287
+ return e.type === "JSXExpressionContainer" && te(e.expression) && e.expression.value === " " && !T(e.expression);
2288
+ }
2289
+ function Ti(e) {
2290
+ let { node: t, parent: r } = e;
2291
+ if (!X(t) || !X(r)) return false;
2292
+ let { index: n, siblings: s } = e, u;
2293
+ for (let i = n; i > 0; i--) {
2294
+ let a = s[i - 1];
2295
+ if (!(a.type === "JSXText" && !mr(a))) {
2296
+ u = a;
2297
+ break;
2298
+ }
2299
+ }
2300
+ return (u == null ? void 0 : u.type) === "JSXExpressionContainer" && u.expression.type === "JSXEmptyExpression" && It(u.expression);
2301
+ }
2302
+ function wc(e) {
2303
+ return It(e.node) || Ti(e);
2304
+ }
2305
+ var Hr = wc;
2306
+ var Oc = 0;
2307
+ function Vr(e, t, r) {
2308
+ var v;
2309
+ let { node: n, parent: s, grandparent: u, key: i } = e, a = i !== "body" && (s.type === "IfStatement" || s.type === "WhileStatement" || s.type === "SwitchStatement" || s.type === "DoWhileStatement"), o = n.operator === "|>" && ((v = e.root.extra) == null ? void 0 : v.__isUsingHackPipeline), p = fs(e, r, t, false, a);
2310
+ if (a) return p;
2311
+ if (o) return l(p);
2312
+ if (L(s) && s.callee === n || s.type === "UnaryExpression" || W(s) && !s.computed) return l([f([E, ...p]), E]);
2313
+ let y = s.type === "ReturnStatement" || s.type === "ThrowStatement" || s.type === "JSXExpressionContainer" && u.type === "JSXAttribute" || n.operator !== "|" && s.type === "JsExpressionRoot" || n.type !== "NGPipeExpression" && (s.type === "NGRoot" && t.parser === "__ng_binding" || s.type === "NGMicrosyntaxExpression" && u.type === "NGMicrosyntax" && u.body.length === 1) || n === s.body && s.type === "ArrowFunctionExpression" || n !== s.body && s.type === "ForStatement" || s.type === "ConditionalExpression" && u.type !== "ReturnStatement" && u.type !== "ThrowStatement" && !L(u) || s.type === "TemplateLiteral", D = s.type === "AssignmentExpression" || s.type === "VariableDeclarator" || s.type === "ClassProperty" || s.type === "PropertyDefinition" || s.type === "TSAbstractPropertyDefinition" || s.type === "ClassPrivateProperty" || Ce(s), m = De(n.left) && ur(n.operator, n.left.operator);
2314
+ if (y || Nt(n) && !m || !Nt(n) && D) return l(p);
2315
+ if (p.length === 0) return "";
2316
+ let C = X(n.right), c = p.findIndex((j) => typeof j != "string" && !Array.isArray(j) && j.type === me), A = p.slice(0, c === -1 ? 1 : c + 1), d = p.slice(A.length, C ? -1 : void 0), S = Symbol("logicalChain-" + ++Oc), g = l([...A, f(d)], { id: S });
2317
+ if (!C) return g;
2318
+ let _ = M(false, p, -1);
2319
+ return l([g, dt(_, { groupId: S })]);
2320
+ }
2321
+ function fs(e, t, r, n, s) {
2322
+ var S;
2323
+ let { node: u } = e;
2324
+ if (!De(u)) return [l(t())];
2325
+ let i = [];
2326
+ ur(u.operator, u.left.operator) ? i = e.call((g) => fs(g, t, r, true, s), "left") : i.push(l(t("left")));
2327
+ let a = Nt(u), o = (u.operator === "|>" || u.type === "NGPipeExpression" || _c(e, r)) && !Le(r.originalText, u.right), y = !T(u.right, h.Leading, qr) && Le(r.originalText, u.right), D = u.type === "NGPipeExpression" ? "|" : u.operator, m = u.type === "NGPipeExpression" && u.arguments.length > 0 ? l(f([E, ": ", b([x, ": "], e.map(() => Be(2, l(t())), "arguments"))])) : "", C;
2328
+ if (a) C = [D, " ", t("right"), m];
2329
+ else {
2330
+ let _ = D === "|>" && ((S = e.root.extra) == null ? void 0 : S.__isUsingHackPipeline) ? e.call((v) => fs(v, t, r, true, s), "right") : t("right");
2331
+ if (r.experimentalOperatorPosition === "start") {
2332
+ let v = "";
2333
+ if (y) switch (Se(_)) {
2334
+ case he:
2335
+ v = _.splice(0, 1)[0];
2336
+ break;
2337
+ case ge:
2338
+ v = _.contents.splice(0, 1)[0];
2339
+ break;
2340
+ }
2341
+ C = [x, v, D, " ", _, m];
2342
+ } else C = [o ? x : "", D, o ? " " : x, _, m];
2343
+ }
2344
+ let { parent: c } = e, A = T(u.left, h.Trailing | h.Line);
2345
+ if ((A || !(s && u.type === "LogicalExpression") && c.type !== u.type && u.left.type !== u.type && u.right.type !== u.type) && (C = l(C, { shouldBreak: A })), r.experimentalOperatorPosition === "start" ? i.push(a || y ? " " : "", C) : i.push(o ? "" : " ", C), n && T(u)) {
2346
+ let g = Gt(ye(e, i, r));
2347
+ return g.type === we ? g.parts : Array.isArray(g) ? g : [g];
2348
+ }
2349
+ return i;
2350
+ }
2351
+ function Nt(e) {
2352
+ return e.type !== "LogicalExpression" ? false : !!(se(e.right) && e.right.properties.length > 0 || Y(e.right) && e.right.elements.length > 0 || X(e.right));
2353
+ }
2354
+ var di = (e) => e.type === "BinaryExpression" && e.operator === "|";
2355
+ function _c(e, t) {
2356
+ return (t.parser === "__vue_expression" || t.parser === "__vue_ts_expression") && di(e.node) && !e.hasAncestor((r) => !di(r) && r.type !== "JsExpressionRoot");
2357
+ }
2358
+ function hi(e, t, r) {
2359
+ let { node: n } = e;
2360
+ if (n.type.startsWith("NG")) switch (n.type) {
2361
+ case "NGRoot":
2362
+ return [r("node"), T(n.node) ? " //" + ct(n.node)[0].value.trimEnd() : ""];
2363
+ case "NGPipeExpression":
2364
+ return Vr(e, t, r);
2365
+ case "NGChainedExpression":
2366
+ return l(b([";", x], e.map(() => jc(e) ? r() : ["(", r(), ")"], "expressions")));
2367
+ case "NGEmptyExpression":
2368
+ return "";
2369
+ case "NGMicrosyntax":
2370
+ return e.map(() => [e.isFirst ? "" : xi(e) ? " " : [";", x], r()], "body");
2371
+ case "NGMicrosyntaxKey":
2372
+ return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name) ? n.name : JSON.stringify(n.name);
2373
+ case "NGMicrosyntaxExpression":
2374
+ return [r("expression"), n.alias === null ? "" : [" as ", r("alias")]];
2375
+ case "NGMicrosyntaxKeyedExpression": {
2376
+ let { index: s, parent: u } = e, i = xi(e) || (s === 1 && (n.key.name === "then" || n.key.name === "else" || n.key.name === "as") || (s === 2 || s === 3) && (n.key.name === "else" && u.body[s - 1].type === "NGMicrosyntaxKeyedExpression" && u.body[s - 1].key.name === "then" || n.key.name === "track")) && u.body[0].type === "NGMicrosyntaxExpression";
2377
+ return [r("key"), i ? " " : ": ", r("expression")];
2378
+ }
2379
+ case "NGMicrosyntaxLet":
2380
+ return ["let ", r("key"), n.value === null ? "" : [" = ", r("value")]];
2381
+ case "NGMicrosyntaxAs":
2382
+ return [r("key"), " as ", r("alias")];
2383
+ default:
2384
+ throw new qe(n, "Angular");
2385
+ }
2386
+ }
2387
+ function xi({ node: e, index: t }) {
2388
+ return e.type === "NGMicrosyntaxKeyedExpression" && e.key.name === "of" && t === 1;
2389
+ }
2390
+ var vc = R(["CallExpression", "OptionalCallExpression", "AssignmentExpression"]);
2391
+ function jc({ node: e }) {
2392
+ return nr(e, vc);
2393
+ }
2394
+ function Es(e, t, r) {
2395
+ let { node: n } = e;
2396
+ return l([b(x, e.map(r, "decorators")), Bi(n, t) ? F : x]);
2397
+ }
2398
+ function gi(e, t, r) {
2399
+ return bi(e.node) ? [b(F, e.map(r, "declaration", "decorators")), F] : "";
2400
+ }
2401
+ function Si(e, t, r) {
2402
+ let { node: n, parent: s } = e, { decorators: u } = n;
2403
+ if (!O(u) || bi(s) || Hr(e)) return "";
2404
+ let i = n.type === "ClassExpression" || n.type === "ClassDeclaration" || Bi(n, t);
2405
+ return [e.key === "declaration" && pu(s) ? F : i ? Ee : "", b(x, e.map(r, "decorators")), x];
2406
+ }
2407
+ function Bi(e, t) {
2408
+ return e.decorators.some((r) => Z(t.originalText, k(r)));
2409
+ }
2410
+ function bi(e) {
2411
+ var r;
2412
+ if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration") return false;
2413
+ let t = (r = e.declaration) == null ? void 0 : r.decorators;
2414
+ return O(t) && bt(e, t[0]);
2415
+ }
2416
+ var yt = class extends Error {
2417
+ name = "ArgExpansionBailout";
2418
+ };
2419
+ function Mc(e, t, r) {
2420
+ let { node: n } = e, s = pe(n);
2421
+ if (s.length === 0) return ["(", J(e, t), ")"];
2422
+ let u = s.length - 1;
2423
+ if (qc(s)) {
2424
+ let D = ["("];
2425
+ return qt(e, (m, C) => {
2426
+ D.push(r()), C !== u && D.push(", ");
2427
+ }), D.push(")"), D;
2428
+ }
2429
+ let i = false, a = [];
2430
+ qt(e, ({ node: D }, m) => {
2431
+ let C = r();
2432
+ m === u || (ce(D, t) ? (i = true, C = [C, ",", F, F]) : C = [C, ",", x]), a.push(C);
2433
+ });
2434
+ let o = !t.parser.startsWith("__ng_") && n.type !== "ImportExpression" && oe(t, "all") ? "," : "";
2435
+ function p() {
2436
+ return l(["(", f([x, ...a]), o, x, ")"], { shouldBreak: true });
2437
+ }
2438
+ if (i || e.parent.type !== "Decorator" && Du(s)) return p();
2439
+ if (Jc(s)) {
2440
+ let D = a.slice(1);
2441
+ if (D.some(re)) return p();
2442
+ let m;
2443
+ try {
2444
+ m = r(Jn(n, 0), { expandFirstArg: true });
2445
+ } catch (C) {
2446
+ if (C instanceof yt) return p();
2447
+ throw C;
2448
+ }
2449
+ return re(m) ? [Ee, Ze([["(", l(m, { shouldBreak: true }), ", ", ...D, ")"], p()])] : Ze([["(", m, ", ", ...D, ")"], ["(", l(m, { shouldBreak: true }), ", ", ...D, ")"], p()]);
2450
+ }
2451
+ if (Rc(s, a, t)) {
2452
+ let D = a.slice(0, -1);
2453
+ if (D.some(re)) return p();
2454
+ let m;
2455
+ try {
2456
+ m = r(Jn(n, -1), { expandLastArg: true });
2457
+ } catch (C) {
2458
+ if (C instanceof yt) return p();
2459
+ throw C;
2460
+ }
2461
+ return re(m) ? [Ee, Ze([["(", ...D, l(m, { shouldBreak: true }), ")"], p()])] : Ze([["(", ...D, m, ")"], ["(", ...D, l(m, { shouldBreak: true }), ")"], p()]);
2462
+ }
2463
+ let y = ["(", f([E, ...a]), B(o), E, ")"];
2464
+ return _r(e) ? y : l(y, { shouldBreak: a.some(re) || i });
2465
+ }
2466
+ function yr(e, t = false) {
2467
+ return se(e) && (e.properties.length > 0 || T(e)) || Y(e) && (e.elements.length > 0 || T(e)) || e.type === "TSTypeAssertion" && yr(e.expression) || Ae(e) && yr(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || Wc(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && yr(e.body, true) || se(e.body) || Y(e.body) || !t && (L(e.body) || e.body.type === "ConditionalExpression") || X(e.body)) || e.type === "DoExpression" || e.type === "ModuleExpression";
2468
+ }
2469
+ function Rc(e, t, r) {
2470
+ var u, i;
2471
+ let n = M(false, e, -1);
2472
+ if (e.length === 1) {
2473
+ let a = M(false, t, -1);
2474
+ if ((u = a.label) != null && u.embed && ((i = a.label) == null ? void 0 : i.hug) !== false) return true;
2475
+ }
2476
+ let s = M(false, e, -2);
2477
+ return !T(n, h.Leading) && !T(n, h.Trailing) && yr(n) && (!s || s.type !== n.type) && (e.length !== 2 || s.type !== "ArrowFunctionExpression" || !Y(n)) && !(e.length > 1 && Fs(n, r));
2478
+ }
2479
+ function Jc(e) {
2480
+ if (e.length !== 2) return false;
2481
+ let [t, r] = e;
2482
+ return t.type === "ModuleExpression" && Gc(r) ? true : !T(t) && (t.type === "FunctionExpression" || t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement") && r.type !== "FunctionExpression" && r.type !== "ArrowFunctionExpression" && r.type !== "ConditionalExpression" && ki(r) && !yr(r);
2483
+ }
2484
+ function ki(e) {
2485
+ if (e.type === "ParenthesizedExpression") return ki(e.expression);
2486
+ if (Ae(e) || e.type === "TypeCastExpression") {
2487
+ let { typeAnnotation: t } = e;
2488
+ if (t.type === "TypeAnnotation" && (t = t.typeAnnotation), t.type === "TSArrayType" && (t = t.elementType, t.type === "TSArrayType" && (t = t.elementType)), t.type === "GenericTypeAnnotation" || t.type === "TSTypeReference") {
2489
+ let r = t.typeArguments ?? t.typeParameters;
2490
+ (r == null ? void 0 : r.params.length) === 1 && (t = r.params[0]);
2491
+ }
2492
+ return Jt(t) && Ie(e.expression, 1);
2493
+ }
2494
+ return lt(e) && pe(e).length > 1 ? false : De(e) ? Ie(e.left, 1) && Ie(e.right, 1) : Mn(e) || Ie(e);
2495
+ }
2496
+ function qc(e) {
2497
+ return e.length === 2 ? Pi(e, 0) : e.length === 3 ? e[0].type === "Identifier" && Pi(e, 1) : false;
2498
+ }
2499
+ function Pi(e, t) {
2500
+ let r = e[t], n = e[t + 1];
2501
+ return r.type === "ArrowFunctionExpression" && z(r).length === 0 && r.body.type === "BlockStatement" && n.type === "ArrayExpression" && !e.some((s) => T(s));
2502
+ }
2503
+ function Wc(e) {
2504
+ return e.type === "BlockStatement" && (e.body.some((t) => t.type !== "EmptyStatement") || T(e, h.Dangling));
2505
+ }
2506
+ function Gc(e) {
2507
+ return e.type === "ObjectExpression" && e.properties.length === 1 && Ce(e.properties[0]) && e.properties[0].key.type === "Identifier" && e.properties[0].key.name === "type" && te(e.properties[0].value) && e.properties[0].value.value === "module";
2508
+ }
2509
+ var Dr = Mc;
2510
+ var Uc = (e) => ((e.type === "ChainExpression" || e.type === "TSNonNullExpression") && (e = e.expression), L(e) && pe(e).length > 0);
2511
+ function Ii(e, t, r) {
2512
+ var p;
2513
+ let n = r("object"), s = Cs(e, t, r), { node: u } = e, i = e.findAncestor((y) => !(W(y) || y.type === "TSNonNullExpression")), a = e.findAncestor((y) => !(y.type === "ChainExpression" || y.type === "TSNonNullExpression")), o = i && (i.type === "NewExpression" || i.type === "BindExpression" || i.type === "AssignmentExpression" && i.left.type !== "Identifier") || u.computed || u.object.type === "Identifier" && u.property.type === "Identifier" && !W(a) || (a.type === "AssignmentExpression" || a.type === "VariableDeclarator") && (Uc(u.object) || ((p = n.label) == null ? void 0 : p.memberChain));
2514
+ return st(n.label, [n, o ? s : l(f([E, s]))]);
2515
+ }
2516
+ function Cs(e, t, r) {
2517
+ let n = r("property"), { node: s } = e, u = $(e);
2518
+ return s.computed ? !s.property || Fe(s.property) ? [u, "[", n, "]"] : l([u, "[", f([E, n]), E, "]"]) : [u, ".", n];
2519
+ }
2520
+ function Li(e, t, r) {
2521
+ if (e.node.type === "ChainExpression") return e.call(() => Li(e, t, r), "expression");
2522
+ let { parent: n } = e, s = !n || n.type === "ExpressionStatement", u = [];
2523
+ function i(w) {
2524
+ let { originalText: ne } = t, xe = ut(ne, k(w));
2525
+ return ne.charAt(xe) === ")" ? xe !== false && vt(ne, xe + 1) : ce(w, t);
2526
+ }
2527
+ function a() {
2528
+ let { node: w } = e;
2529
+ if (w.type === "ChainExpression") return e.call(a, "expression");
2530
+ if (L(w) && (At(w.callee) || L(w.callee))) {
2531
+ let ne = i(w);
2532
+ u.unshift({ node: w, hasTrailingEmptyLine: ne, printed: [ye(e, [$(e), et(e, t, r), Dr(e, t, r)], t), ne ? F : ""] }), e.call(a, "callee");
2533
+ } else At(w) ? (u.unshift({ node: w, needsParens: ke(e, t), printed: ye(e, W(w) ? Cs(e, t, r) : $r(e, t, r), t) }), e.call(a, "object")) : w.type === "TSNonNullExpression" ? (u.unshift({ node: w, printed: ye(e, "!", t) }), e.call(a, "expression")) : u.unshift({ node: w, printed: r() });
2534
+ }
2535
+ let { node: o } = e;
2536
+ u.unshift({ node: o, printed: [$(e), et(e, t, r), Dr(e, t, r)] }), o.callee && e.call(a, "callee");
2537
+ let p = [], y = [u[0]], D = 1;
2538
+ for (; D < u.length && (u[D].node.type === "TSNonNullExpression" || L(u[D].node) || W(u[D].node) && u[D].node.computed && Fe(u[D].node.property)); ++D) y.push(u[D]);
2539
+ if (!L(u[0].node)) for (; D + 1 < u.length && (At(u[D].node) && At(u[D + 1].node)); ++D) y.push(u[D]);
2540
+ p.push(y), y = [];
2541
+ let m = false;
2542
+ for (; D < u.length; ++D) {
2543
+ if (m && At(u[D].node)) {
2544
+ if (u[D].node.computed && Fe(u[D].node.property)) {
2545
+ y.push(u[D]);
2546
+ continue;
2547
+ }
2548
+ p.push(y), y = [], m = false;
2549
+ }
2550
+ (L(u[D].node) || u[D].node.type === "ImportExpression") && (m = true), y.push(u[D]), T(u[D].node, h.Trailing) && (p.push(y), y = [], m = false);
2551
+ }
2552
+ y.length > 0 && p.push(y);
2553
+ function C(w) {
2554
+ return /^[A-Z]|^[$_]+$/u.test(w);
2555
+ }
2556
+ function c(w) {
2557
+ return w.length <= t.tabWidth;
2558
+ }
2559
+ function A(w) {
2560
+ var ot;
2561
+ let ne = (ot = w[1][0]) == null ? void 0 : ot.node.computed;
2562
+ if (w[0].length === 1) {
2563
+ let Bt = w[0][0].node;
2564
+ return Bt.type === "ThisExpression" || Bt.type === "Identifier" && (C(Bt.name) || s && c(Bt.name) || ne);
2565
+ }
2566
+ let xe = M(false, w[0], -1).node;
2567
+ return W(xe) && xe.property.type === "Identifier" && (C(xe.property.name) || ne);
2568
+ }
2569
+ let d = p.length >= 2 && !T(p[1][0].node) && A(p);
2570
+ function S(w) {
2571
+ let ne = w.map((xe) => xe.printed);
2572
+ return w.length > 0 && M(false, w, -1).needsParens ? ["(", ...ne, ")"] : ne;
2573
+ }
2574
+ function g(w) {
2575
+ return w.length === 0 ? "" : f([F, b(F, w.map(S))]);
2576
+ }
2577
+ let _ = p.map(S), v = _, j = d ? 3 : 2, I = p.flat(), U = I.slice(1, -1).some((w) => T(w.node, h.Leading)) || I.slice(0, -1).some((w) => T(w.node, h.Trailing)) || p[j] && T(p[j][0].node, h.Leading);
2578
+ if (p.length <= j && !U && !p.some((w) => M(false, w, -1).hasTrailingEmptyLine)) return _r(e) ? v : l(v);
2579
+ let P = M(false, p[d ? 1 : 0], -1).node, G = !L(P) && i(P), ue = [S(p[0]), d ? p.slice(1, 2).map(S) : "", G ? F : "", g(p.slice(d ? 2 : 1))], Q = u.map(({ node: w }) => w).filter(L);
2580
+ function St() {
2581
+ let w = M(false, M(false, p, -1), -1).node, ne = M(false, _, -1);
2582
+ return L(w) && re(ne) && Q.slice(0, -1).some((xe) => xe.arguments.some(Mt));
2583
+ }
2584
+ let Ft;
2585
+ return U || Q.length > 2 && Q.some((w) => !w.arguments.every((ne) => Ie(ne))) || _.slice(0, -1).some(re) || St() ? Ft = l(ue) : Ft = [re(v) || G ? Ee : "", Ze([v, ue])], st({ memberChain: true }, Ft);
2586
+ }
2587
+ var wi = Li;
2588
+ function Kr(e, t, r) {
2589
+ var y;
2590
+ let { node: n } = e, s = n.type === "NewExpression", u = n.type === "ImportExpression", i = $(e), a = pe(n), o = a.length === 1 && wr(a[0], t.originalText);
2591
+ if (o || Yc(e) || kt(n, e.parent)) {
2592
+ let D = [];
2593
+ if (qt(e, () => {
2594
+ D.push(r());
2595
+ }), !(o && ((y = D[0].label) != null && y.embed))) return [s ? "new " : "", Oi(e, r), i, et(e, t, r), "(", b(", ", D), ")"];
2596
+ }
2597
+ if (!u && !s && At(n.callee) && !e.call((D) => ke(D, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : [])) return wi(e, t, r);
2598
+ let p = [s ? "new " : "", Oi(e, r), i, et(e, t, r), Dr(e, t, r)];
2599
+ return u || L(n.callee) ? l(p) : p;
2600
+ }
2601
+ function Oi(e, t) {
2602
+ let { node: r } = e;
2603
+ return r.type === "ImportExpression" ? `import${r.phase ? `.${r.phase}` : ""}` : t("callee");
2604
+ }
2605
+ function Yc(e) {
2606
+ let { node: t } = e;
2607
+ if (t.type !== "CallExpression" || t.optional || t.callee.type !== "Identifier") return false;
2608
+ let r = pe(t);
2609
+ return t.callee.name === "require" ? r.length === 1 && te(r[0]) || r.length > 1 : t.callee.name === "define" && e.parent.type === "ExpressionStatement" ? r.length === 1 || r.length === 2 && r[0].type === "ArrayExpression" || r.length === 3 && te(r[0]) && r[1].type === "ArrayExpression" : false;
2610
+ }
2611
+ function xt(e, t, r, n, s, u) {
2612
+ let i = Nc(e, t, r, n, u), a = u ? r(u, { assignmentLayout: i }) : "";
2613
+ switch (i) {
2614
+ case "break-after-operator":
2615
+ return l([l(n), s, l(f([x, a]))]);
2616
+ case "never-break-after-operator":
2617
+ return l([l(n), s, " ", a]);
2618
+ case "fluid": {
2619
+ let o = Symbol("assignment");
2620
+ return l([l(n), s, l(f(x), { id: o }), ve, dt(a, { groupId: o })]);
2621
+ }
2622
+ case "break-lhs":
2623
+ return l([n, s, " ", l(a)]);
2624
+ case "chain":
2625
+ return [l(n), s, x, a];
2626
+ case "chain-tail":
2627
+ return [l(n), s, f([x, a])];
2628
+ case "chain-tail-arrow-chain":
2629
+ return [l(n), s, a];
2630
+ case "only-left":
2631
+ return n;
2632
+ }
2633
+ }
2634
+ function vi(e, t, r) {
2635
+ let { node: n } = e;
2636
+ return xt(e, t, r, r("left"), [" ", n.operator], "right");
2637
+ }
2638
+ function ji(e, t, r) {
2639
+ return xt(e, t, r, r("id"), " =", "init");
2640
+ }
2641
+ function Nc(e, t, r, n, s) {
2642
+ let { node: u } = e, i = u[s];
2643
+ if (!i) return "only-left";
2644
+ let a = !Qr(i);
2645
+ if (e.match(Qr, Mi, (m) => !a || m.type !== "ExpressionStatement" && m.type !== "VariableDeclaration")) return a ? i.type === "ArrowFunctionExpression" && i.body.type === "ArrowFunctionExpression" ? "chain-tail-arrow-chain" : "chain-tail" : "chain";
2646
+ if (!a && Qr(i.right) || Le(t.originalText, i)) return "break-after-operator";
2647
+ if (u.type === "ImportAttribute" || i.type === "CallExpression" && i.callee.name === "require" || t.parser === "json5" || t.parser === "jsonc" || t.parser === "json") return "never-break-after-operator";
2648
+ let y = Bu(n);
2649
+ if (Hc(u) || Qc(u) || As(u) && y) return "break-lhs";
2650
+ let D = Zc(u, n, t);
2651
+ return e.call(() => Xc(e, t, r, D), s) ? "break-after-operator" : Vc(u) ? "break-lhs" : !y && (D || i.type === "TemplateLiteral" || i.type === "TaggedTemplateExpression" || i.type === "BooleanLiteral" || Fe(i) || i.type === "ClassExpression") ? "never-break-after-operator" : "fluid";
2652
+ }
2653
+ function Xc(e, t, r, n) {
2654
+ let s = e.node;
2655
+ if (De(s) && !Nt(s)) return true;
2656
+ switch (s.type) {
2657
+ case "StringLiteralTypeAnnotation":
2658
+ case "SequenceExpression":
2659
+ return true;
2660
+ case "TSConditionalType":
2661
+ case "ConditionalTypeAnnotation":
2662
+ if (!t.experimentalTernaries && !rl(s)) break;
2663
+ return true;
2664
+ case "ConditionalExpression": {
2665
+ if (!t.experimentalTernaries) {
2666
+ let { test: p } = s;
2667
+ return De(p) && !Nt(p);
2668
+ }
2669
+ let { consequent: a, alternate: o } = s;
2670
+ return a.type === "ConditionalExpression" || o.type === "ConditionalExpression";
2671
+ }
2672
+ case "ClassExpression":
2673
+ return O(s.decorators);
2674
+ }
2675
+ if (n) return false;
2676
+ let u = s, i = [];
2677
+ for (; ; ) if (u.type === "UnaryExpression" || u.type === "AwaitExpression" || u.type === "YieldExpression" && u.argument !== null) u = u.argument, i.push("argument");
2678
+ else if (u.type === "TSNonNullExpression") u = u.expression, i.push("expression");
2679
+ else break;
2680
+ return !!(te(u) || e.call(() => Ri(e, t, r), ...i));
2681
+ }
2682
+ function Hc(e) {
2683
+ if (Mi(e)) {
2684
+ let t = e.left || e.id;
2685
+ return t.type === "ObjectPattern" && t.properties.length > 2 && t.properties.some((r) => {
2686
+ var n;
2687
+ return Ce(r) && (!r.shorthand || ((n = r.value) == null ? void 0 : n.type) === "AssignmentPattern");
2688
+ });
2689
+ }
2690
+ return false;
2691
+ }
2692
+ function Qr(e) {
2693
+ return e.type === "AssignmentExpression";
2694
+ }
2695
+ function Mi(e) {
2696
+ return Qr(e) || e.type === "VariableDeclarator";
2697
+ }
2698
+ function Vc(e) {
2699
+ let t = Kc(e);
2700
+ if (O(t)) {
2701
+ let r = e.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
2702
+ if (t.length > 1 && t.some((n) => n[r] || n.default)) return true;
2703
+ }
2704
+ return false;
2705
+ }
2706
+ var $c = R(["TSTypeAliasDeclaration", "TypeAlias"]);
2707
+ function Kc(e) {
2708
+ var t;
2709
+ if ($c(e)) return (t = e.typeParameters) == null ? void 0 : t.params;
2710
+ }
2711
+ function Qc(e) {
2712
+ if (e.type !== "VariableDeclarator") return false;
2713
+ let { typeAnnotation: t } = e.id;
2714
+ if (!t || !t.typeAnnotation) return false;
2715
+ let r = _i(t.typeAnnotation);
2716
+ return O(r) && r.length > 1 && r.some((n) => O(_i(n)) || n.type === "TSConditionalType");
2717
+ }
2718
+ function As(e) {
2719
+ var t;
2720
+ return e.type === "VariableDeclarator" && ((t = e.init) == null ? void 0 : t.type) === "ArrowFunctionExpression";
2721
+ }
2722
+ var zc = R(["TSTypeReference", "GenericTypeAnnotation"]);
2723
+ function _i(e) {
2724
+ var t;
2725
+ if (zc(e)) return (t = e.typeArguments ?? e.typeParameters) == null ? void 0 : t.params;
2726
+ }
2727
+ function Ri(e, t, r, n = false) {
2728
+ var i;
2729
+ let { node: s } = e, u = () => Ri(e, t, r, true);
2730
+ if (s.type === "ChainExpression" || s.type === "TSNonNullExpression") return e.call(u, "expression");
2731
+ if (L(s)) {
2732
+ if ((i = Kr(e, t, r).label) != null && i.memberChain) return false;
2733
+ let o = pe(s);
2734
+ return !(o.length === 0 || o.length === 1 && sr(o[0], t)) || el(s, r) ? false : e.call(u, "callee");
2735
+ }
2736
+ return W(s) ? e.call(u, "object") : n && (s.type === "Identifier" || s.type === "ThisExpression");
2737
+ }
2738
+ function Zc(e, t, r) {
2739
+ return Ce(e) ? (t = Gt(t), typeof t == "string" && tt(t) < r.tabWidth + 3) : false;
2740
+ }
2741
+ function el(e, t) {
2742
+ let r = tl(e);
2743
+ if (O(r)) {
2744
+ if (r.length > 1) return true;
2745
+ if (r.length === 1) {
2746
+ let s = r[0];
2747
+ if (Xe(s) || vr(s) || s.type === "TSTypeLiteral" || s.type === "ObjectTypeAnnotation") return true;
2748
+ }
2749
+ let n = e.typeParameters ? "typeParameters" : "typeArguments";
2750
+ if (re(t(n))) return true;
2751
+ }
2752
+ return false;
2753
+ }
2754
+ function tl(e) {
2755
+ var t;
2756
+ return (t = e.typeParameters ?? e.typeArguments) == null ? void 0 : t.params;
2757
+ }
2758
+ function rl(e) {
2759
+ function t(r) {
2760
+ switch (r.type) {
2761
+ case "FunctionTypeAnnotation":
2762
+ case "GenericTypeAnnotation":
2763
+ case "TSFunctionType":
2764
+ return !!r.typeParameters;
2765
+ case "TSTypeReference":
2766
+ return !!(r.typeArguments ?? r.typeParameters);
2767
+ default:
2768
+ return false;
2769
+ }
2770
+ }
2771
+ return t(e.checkType) || t(e.extendsType);
2772
+ }
2773
+ function Ge(e, t, r, n, s) {
2774
+ let u = e.node, i = z(u), a = s ? et(e, r, t) : "";
2775
+ if (i.length === 0) return [a, "(", J(e, r, { filter: (c) => be(r.originalText, k(c)) === ")" }), ")"];
2776
+ let { parent: o } = e, p = kt(o), y = Ts(u), D = [];
2777
+ if (Cu(e, (c, A) => {
2778
+ let d = A === i.length - 1;
2779
+ d && u.rest && D.push("..."), D.push(t()), !d && (D.push(","), p || y ? D.push(" ") : ce(i[A], r) ? D.push(F, F) : D.push(x));
2780
+ }), n && !sl(e)) {
2781
+ if (re(a) || re(D)) throw new yt();
2782
+ return l([or(a), "(", or(D), ")"]);
2783
+ }
2784
+ let m = i.every((c) => !O(c.decorators));
2785
+ return y && m ? [a, "(", ...D, ")"] : p ? [a, "(", ...D, ")"] : (Lr(o) || lu(o) || o.type === "TypeAlias" || o.type === "UnionTypeAnnotation" || o.type === "IntersectionTypeAnnotation" || o.type === "FunctionTypeAnnotation" && o.returnType === u) && i.length === 1 && i[0].name === null && u.this !== i[0] && i[0].typeAnnotation && u.typeParameters === null && Jt(i[0].typeAnnotation) && !u.rest ? r.arrowParens === "always" || u.type === "HookTypeAnnotation" ? ["(", ...D, ")"] : D : [a, "(", f([E, ...D]), B(!Fu(u) && oe(r, "all") ? "," : ""), E, ")"];
2786
+ }
2787
+ function Ts(e) {
2788
+ if (!e) return false;
2789
+ let t = z(e);
2790
+ if (t.length !== 1) return false;
2791
+ let [r] = t;
2792
+ return !T(r) && (r.type === "ObjectPattern" || r.type === "ArrayPattern" || r.type === "Identifier" && r.typeAnnotation && (r.typeAnnotation.type === "TypeAnnotation" || r.typeAnnotation.type === "TSTypeAnnotation") && Me(r.typeAnnotation.typeAnnotation) || r.type === "FunctionTypeParam" && Me(r.typeAnnotation) && r !== e.rest || r.type === "AssignmentPattern" && (r.left.type === "ObjectPattern" || r.left.type === "ArrayPattern") && (r.right.type === "Identifier" || se(r.right) && r.right.properties.length === 0 || Y(r.right) && r.right.elements.length === 0));
2793
+ }
2794
+ function nl(e) {
2795
+ let t;
2796
+ return e.returnType ? (t = e.returnType, t.typeAnnotation && (t = t.typeAnnotation)) : e.typeAnnotation && (t = e.typeAnnotation), t;
2797
+ }
2798
+ function at(e, t) {
2799
+ var s;
2800
+ let r = nl(e);
2801
+ if (!r) return false;
2802
+ let n = (s = e.typeParameters) == null ? void 0 : s.params;
2803
+ if (n) {
2804
+ if (n.length > 1) return false;
2805
+ if (n.length === 1) {
2806
+ let u = n[0];
2807
+ if (u.constraint || u.default) return false;
2808
+ }
2809
+ }
2810
+ return z(e).length === 1 && (Me(r) || re(t));
2811
+ }
2812
+ function sl(e) {
2813
+ return e.match((t) => t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement", (t, r) => {
2814
+ if (t.type === "CallExpression" && r === "arguments" && t.arguments.length === 1 && t.callee.type === "CallExpression") {
2815
+ let n = t.callee.callee;
2816
+ return n.type === "Identifier" || n.type === "MemberExpression" && !n.computed && n.object.type === "Identifier" && n.property.type === "Identifier";
2817
+ }
2818
+ return false;
2819
+ }, (t, r) => t.type === "VariableDeclarator" && r === "init" || t.type === "ExportDefaultDeclaration" && r === "declaration" || t.type === "TSExportAssignment" && r === "expression" || t.type === "AssignmentExpression" && r === "right" && t.left.type === "MemberExpression" && t.left.object.type === "Identifier" && t.left.object.name === "module" && t.left.property.type === "Identifier" && t.left.property.name === "exports", (t) => t.type !== "VariableDeclaration" || t.kind === "const" && t.declarations.length === 1);
2820
+ }
2821
+ function Ji(e) {
2822
+ let t = z(e);
2823
+ return t.length > 1 && t.some((r) => r.type === "TSParameterProperty");
2824
+ }
2825
+ var ul = R(["VoidTypeAnnotation", "TSVoidKeyword", "NullLiteralTypeAnnotation", "TSNullKeyword"]), il = R(["ObjectTypeAnnotation", "TSTypeLiteral", "GenericTypeAnnotation", "TSTypeReference"]);
2826
+ function al(e) {
2827
+ let { types: t } = e;
2828
+ if (t.some((n) => T(n))) return false;
2829
+ let r = t.find((n) => il(n));
2830
+ return r ? t.every((n) => n === r || ul(n)) : false;
2831
+ }
2832
+ function ds(e) {
2833
+ return Jt(e) || Me(e) ? true : Xe(e) ? al(e) : false;
2834
+ }
2835
+ function qi(e, t, r) {
2836
+ let n = t.semi ? ";" : "", { node: s } = e, u = [K(e), "opaque type ", r("id"), r("typeParameters")];
2837
+ return s.supertype && u.push(": ", r("supertype")), s.impltype && u.push(" = ", r("impltype")), u.push(n), u;
2838
+ }
2839
+ function zr(e, t, r) {
2840
+ let n = t.semi ? ";" : "", { node: s } = e, u = [K(e)];
2841
+ u.push("type ", r("id"), r("typeParameters"));
2842
+ let i = s.type === "TSTypeAliasDeclaration" ? "typeAnnotation" : "right";
2843
+ return [xt(e, t, r, u, " =", i), n];
2844
+ }
2845
+ function Zr(e, t, r) {
2846
+ let n = false;
2847
+ return l(e.map(({ isFirst: s, previous: u, node: i, index: a }) => {
2848
+ let o = r();
2849
+ if (s) return o;
2850
+ let p = Me(i), y = Me(u);
2851
+ return y && p ? [" & ", n ? f(o) : o] : !y && !p ? t.experimentalOperatorPosition === "start" ? f([x, "& ", o]) : f([" &", x, o]) : (a > 1 && (n = true), [" & ", a > 1 ? f(o) : o]);
2852
+ }, "types"));
2853
+ }
2854
+ function en(e, t, r) {
2855
+ let { node: n } = e, { parent: s } = e, u = s.type !== "TypeParameterInstantiation" && (s.type !== "TSConditionalType" || !t.experimentalTernaries) && (s.type !== "ConditionalTypeAnnotation" || !t.experimentalTernaries) && s.type !== "TSTypeParameterInstantiation" && s.type !== "GenericTypeAnnotation" && s.type !== "TSTypeReference" && s.type !== "TSTypeAssertion" && s.type !== "TupleTypeAnnotation" && s.type !== "TSTupleType" && !(s.type === "FunctionTypeParam" && !s.name && e.grandparent.this !== s) && !((s.type === "TypeAlias" || s.type === "VariableDeclarator" || s.type === "TSTypeAliasDeclaration") && Le(t.originalText, n)), i = ds(n), a = e.map((y) => {
2856
+ let D = r();
2857
+ return i || (D = Be(2, D)), ye(y, D, t);
2858
+ }, "types");
2859
+ if (i) return b(" | ", a);
2860
+ let o = u && !Le(t.originalText, n), p = [B([o ? x : "", "| "]), b([x, "| "], a)];
2861
+ return ke(e, t) ? l([f(p), E]) : (s.type === "TupleTypeAnnotation" || s.type === "TSTupleType") && s[s.type === "TupleTypeAnnotation" && s.types ? "types" : "elementTypes"].length > 1 ? l([f([B(["(", E]), p]), E, B(")")]) : l(u ? f(p) : p);
2862
+ }
2863
+ function ol(e) {
2864
+ var n;
2865
+ let { node: t, parent: r } = e;
2866
+ return t.type === "FunctionTypeAnnotation" && (Lr(r) || !((r.type === "ObjectTypeProperty" || r.type === "ObjectTypeInternalSlot") && !r.variance && !r.optional && bt(r, t) || r.type === "ObjectTypeCallProperty" || ((n = e.getParentNode(2)) == null ? void 0 : n.type) === "DeclareFunction"));
2867
+ }
2868
+ function tn(e, t, r) {
2869
+ let { node: n } = e, s = [Xt(e)];
2870
+ (n.type === "TSConstructorType" || n.type === "TSConstructSignatureDeclaration") && s.push("new ");
2871
+ let u = Ge(e, r, t, false, true), i = [];
2872
+ return n.type === "FunctionTypeAnnotation" ? i.push(ol(e) ? " => " : ": ", r("returnType")) : i.push(H(e, r, n.returnType ? "returnType" : "typeAnnotation")), at(n, i) && (u = l(u)), s.push(u, i), l(s);
2873
+ }
2874
+ function rn(e, t, r) {
2875
+ return [r("objectType"), $(e), "[", r("indexType"), "]"];
2876
+ }
2877
+ function nn(e, t, r) {
2878
+ return ["infer ", r("typeParameter")];
2879
+ }
2880
+ function xs(e, t, r) {
2881
+ let { node: n } = e;
2882
+ return [n.postfix ? "" : r, H(e, t), n.postfix ? r : ""];
2883
+ }
2884
+ function sn(e, t, r) {
2885
+ let { node: n } = e;
2886
+ return ["...", ...n.type === "TupleTypeSpreadElement" && n.label ? [r("label"), ": "] : [], r("typeAnnotation")];
2887
+ }
2888
+ function un(e, t, r) {
2889
+ let { node: n } = e;
2890
+ return [n.variance ? r("variance") : "", r("label"), n.optional ? "?" : "", ": ", r("elementType")];
2891
+ }
2892
+ var pl = /* @__PURE__ */ new WeakSet();
2893
+ function H(e, t, r = "typeAnnotation") {
2894
+ let { node: { [r]: n } } = e;
2895
+ if (!n) return "";
2896
+ let s = false;
2897
+ if (n.type === "TSTypeAnnotation" || n.type === "TypeAnnotation") {
2898
+ let u = e.call(Wi, r);
2899
+ (u === "=>" || u === ":" && T(n, h.Leading)) && (s = true), pl.add(n);
2900
+ }
2901
+ return s ? [" ", t(r)] : t(r);
2902
+ }
2903
+ var Wi = (e) => e.match((t) => t.type === "TSTypeAnnotation", (t, r) => (r === "returnType" || r === "typeAnnotation") && (t.type === "TSFunctionType" || t.type === "TSConstructorType")) ? "=>" : e.match((t) => t.type === "TSTypeAnnotation", (t, r) => r === "typeAnnotation" && (t.type === "TSJSDocNullableType" || t.type === "TSJSDocNonNullableType" || t.type === "TSTypePredicate")) || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareFunction") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareHook") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "bound" && t.type === "TypeParameter" && t.usesExtendsBound) ? "" : ":";
2904
+ function an(e, t, r) {
2905
+ let n = Wi(e);
2906
+ return n ? [n, " ", r("typeAnnotation")] : r("typeAnnotation");
2907
+ }
2908
+ function on(e) {
2909
+ return [e("elementType"), "[]"];
2910
+ }
2911
+ function pn({ node: e }, t) {
2912
+ let r = e.type === "TSTypeQuery" ? "exprName" : "argument", n = e.type === "TypeofTypeAnnotation" || e.typeArguments ? "typeArguments" : "typeParameters";
2913
+ return ["typeof ", t(r), t(n)];
2914
+ }
2915
+ function cn(e, t) {
2916
+ let { node: r } = e;
2917
+ return [r.type === "TSTypePredicate" && r.asserts ? "asserts " : r.type === "TypePredicate" && r.kind ? `${r.kind} ` : "", t("parameterName"), r.typeAnnotation ? [" is ", H(e, t)] : ""];
2918
+ }
2919
+ function $(e) {
2920
+ let { node: t } = e;
2921
+ return !t.optional || t.type === "Identifier" && t === e.parent.key ? "" : L(t) || W(t) && t.computed || t.type === "OptionalIndexedAccessType" ? "?." : "?";
2922
+ }
2923
+ function ln(e) {
2924
+ return e.node.definite || e.match(void 0, (t, r) => r === "id" && t.type === "VariableDeclarator" && t.definite) ? "!" : "";
2925
+ }
2926
+ var cl = /* @__PURE__ */ new Set(["DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "DeclareVariable", "DeclareExportDeclaration", "DeclareExportAllDeclaration", "DeclareOpaqueType", "DeclareTypeAlias", "DeclareEnum", "DeclareInterface"]);
2927
+ function K(e) {
2928
+ let { node: t } = e;
2929
+ return t.declare || cl.has(t.type) && e.parent.type !== "DeclareExportDeclaration" ? "declare " : "";
2930
+ }
2931
+ var ll = /* @__PURE__ */ new Set(["TSAbstractMethodDefinition", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
2932
+ function Xt({ node: e }) {
2933
+ return e.abstract || ll.has(e.type) ? "abstract " : "";
2934
+ }
2935
+ function et(e, t, r) {
2936
+ let n = e.node;
2937
+ return n.typeArguments ? r("typeArguments") : n.typeParameters ? r("typeParameters") : "";
2938
+ }
2939
+ function $r(e, t, r) {
2940
+ return ["::", r("callee")];
2941
+ }
2942
+ function Dt(e, t, r) {
2943
+ return e.type === "EmptyStatement" ? ";" : e.type === "BlockStatement" || r ? [" ", t] : f([x, t]);
2944
+ }
2945
+ function mn(e, t) {
2946
+ return ["...", t("argument"), H(e, t)];
2947
+ }
2948
+ function Ht(e) {
2949
+ return e.accessibility ? e.accessibility + " " : "";
2950
+ }
2951
+ function ml(e, t, r, n) {
2952
+ let { node: s } = e, u = s.inexact ? "..." : "";
2953
+ return T(s, h.Dangling) ? l([r, u, J(e, t, { indent: true }), E, n]) : [r, u, n];
2954
+ }
2955
+ function Vt(e, t, r) {
2956
+ let { node: n } = e, s = [], u = n.type === "TupleExpression" ? "#[" : "[", i = "]", a = n.type === "TupleTypeAnnotation" && n.types ? "types" : n.type === "TSTupleType" || n.type === "TupleTypeAnnotation" ? "elementTypes" : "elements", o = n[a];
2957
+ if (o.length === 0) s.push(ml(e, t, u, i));
2958
+ else {
2959
+ let p = M(false, o, -1), y = (p == null ? void 0 : p.type) !== "RestElement" && !n.inexact, D = p === null, m = Symbol("array"), C = !t.__inJestEach && o.length > 1 && o.every((d, S, g) => {
2960
+ let _ = d == null ? void 0 : d.type;
2961
+ if (!Y(d) && !se(d)) return false;
2962
+ let v = g[S + 1];
2963
+ if (v && _ !== v.type) return false;
2964
+ let j = Y(d) ? "elements" : "properties";
2965
+ return d[j] && d[j].length > 1;
2966
+ }), c = Fs(n, t), A = y ? D ? "," : oe(t) ? c ? B(",", "", { groupId: m }) : B(",") : "" : "";
2967
+ s.push(l([u, f([E, c ? Dl(e, t, r, A) : [yl(e, t, a, n.inexact, r), A], J(e, t)]), E, i], { shouldBreak: C, id: m }));
2968
+ }
2969
+ return s.push($(e), H(e, r)), s;
2970
+ }
2971
+ function Fs(e, t) {
2972
+ return Y(e) && e.elements.length > 1 && e.elements.every((r) => r && (Fe(r) || jn(r) && !T(r.argument)) && !T(r, h.Trailing | h.Line, (n) => !Z(t.originalText, q(n), { backwards: true })));
2973
+ }
2974
+ function Gi({ node: e }, { originalText: t }) {
2975
+ let r = (s) => Ot(t, _t(t, s)), n = (s) => t[s] === "," ? s : n(r(s + 1));
2976
+ return vt(t, n(k(e)));
2977
+ }
2978
+ function yl(e, t, r, n, s) {
2979
+ let u = [];
2980
+ return e.each(({ node: i, isLast: a }) => {
2981
+ u.push(i ? l(s()) : ""), (!a || n) && u.push([",", x, i && Gi(e, t) ? E : ""]);
2982
+ }, r), n && u.push("..."), u;
2983
+ }
2984
+ function Dl(e, t, r, n) {
2985
+ let s = [];
2986
+ return e.each(({ isLast: u, next: i }) => {
2987
+ s.push([r(), u ? n : ","]), u || s.push(Gi(e, t) ? [F, F] : T(i, h.Leading | h.Line) ? F : x);
2988
+ }, "elements"), Jr(s);
2989
+ }
2990
+ var fl = /^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/, El = (e) => fl.test(e), Ui = El;
2991
+ function Fl(e) {
2992
+ return e.length === 1 ? e : e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u, "$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u, "$1").replace(/^([+-])?\./u, "$10.").replace(/(\.\d+?)0+(?=e|$)/u, "$1").replace(/\.(?=e|$)/u, "");
2993
+ }
2994
+ var ft = Fl;
2995
+ var yn = /* @__PURE__ */ new WeakMap();
2996
+ function Ni(e) {
2997
+ return /^(?:\d+|\d+\.\d+)$/u.test(e);
2998
+ }
2999
+ function Yi(e, t) {
3000
+ return t.parser === "json" || t.parser === "jsonc" || !te(e.key) || rt(fe(e.key), t).slice(1, -1) !== e.key.value ? false : !!(Ui(e.key.value) && !(t.parser === "babel-ts" && e.type === "ClassProperty" || t.parser === "typescript" && e.type === "PropertyDefinition") || Ni(e.key.value) && String(Number(e.key.value)) === e.key.value && e.type !== "ImportAttribute" && (t.parser === "babel" || t.parser === "acorn" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree"));
3001
+ }
3002
+ function Cl(e, t) {
3003
+ let { key: r } = e.node;
3004
+ return (r.type === "Identifier" || Fe(r) && Ni(ft(fe(r))) && String(r.value) === ft(fe(r)) && !(t.parser === "typescript" || t.parser === "babel-ts")) && (t.parser === "json" || t.parser === "jsonc" || t.quoteProps === "consistent" && yn.get(e.parent));
3005
+ }
3006
+ function Et(e, t, r) {
3007
+ let { node: n } = e;
3008
+ if (n.computed) return ["[", r("key"), "]"];
3009
+ let { parent: s } = e, { key: u } = n;
3010
+ if (t.quoteProps === "consistent" && !yn.has(s)) {
3011
+ let i = e.siblings.some((a) => !a.computed && te(a.key) && !Yi(a, t));
3012
+ yn.set(s, i);
3013
+ }
3014
+ if (Cl(e, t)) {
3015
+ let i = rt(JSON.stringify(u.type === "Identifier" ? u.name : u.value.toString()), t);
3016
+ return e.call((a) => ye(a, i, t), "key");
3017
+ }
3018
+ return Yi(n, t) && (t.quoteProps === "as-needed" || t.quoteProps === "consistent" && !yn.get(s)) ? e.call((i) => ye(i, /^\d/u.test(u.value) ? ft(u.value) : u.value, t), "key") : r("key");
3019
+ }
3020
+ function Dn(e, t, r) {
3021
+ let { node: n } = e;
3022
+ return n.shorthand ? r("value") : xt(e, t, r, Et(e, t, r), ":", "value");
3023
+ }
3024
+ var Al = ({ node: e, key: t, parent: r }) => t === "value" && e.type === "FunctionExpression" && (r.type === "ObjectMethod" || r.type === "ClassMethod" || r.type === "ClassPrivateMethod" || r.type === "MethodDefinition" || r.type === "TSAbstractMethodDefinition" || r.type === "TSDeclareMethod" || r.type === "Property" && Pt(r));
3025
+ function fn(e, t, r, n) {
3026
+ if (Al(e)) return En(e, r, t);
3027
+ let { node: s } = e, u = false;
3028
+ if ((s.type === "FunctionDeclaration" || s.type === "FunctionExpression") && (n != null && n.expandLastArg)) {
3029
+ let { parent: y } = e;
3030
+ L(y) && (pe(y).length > 1 || z(s).every((D) => D.type === "Identifier" && !D.typeAnnotation)) && (u = true);
3031
+ }
3032
+ let i = [K(e), s.async ? "async " : "", `function${s.generator ? "*" : ""} `, s.id ? t("id") : ""], a = Ge(e, t, r, u), o = $t(e, t), p = at(s, o);
3033
+ return i.push(et(e, r, t), l([p ? l(a) : a, o]), s.body ? " " : "", t("body")), r.semi && (s.declare || !s.body) && i.push(";"), i;
3034
+ }
3035
+ function fr(e, t, r) {
3036
+ let { node: n } = e, { kind: s } = n, u = n.value || n, i = [];
3037
+ return !s || s === "init" || s === "method" || s === "constructor" ? u.async && i.push("async ") : (jt.ok(s === "get" || s === "set"), i.push(s, " ")), u.generator && i.push("*"), i.push(Et(e, t, r), n.optional || n.key.optional ? "?" : "", n === u ? En(e, t, r) : r("value")), i;
3038
+ }
3039
+ function En(e, t, r) {
3040
+ let { node: n } = e, s = Ge(e, r, t), u = $t(e, r), i = Ji(n), a = at(n, u), o = [et(e, t, r), l([i ? l(s, { shouldBreak: true }) : a ? l(s) : s, u])];
3041
+ return n.body ? o.push(" ", r("body")) : o.push(t.semi ? ";" : ""), o;
3042
+ }
3043
+ function Tl(e) {
3044
+ let t = z(e);
3045
+ return t.length === 1 && !e.typeParameters && !T(e, h.Dangling) && t[0].type === "Identifier" && !t[0].typeAnnotation && !T(t[0]) && !t[0].optional && !e.predicate && !e.returnType;
3046
+ }
3047
+ function Fn(e, t) {
3048
+ if (t.arrowParens === "always") return false;
3049
+ if (t.arrowParens === "avoid") {
3050
+ let { node: r } = e;
3051
+ return Tl(r);
3052
+ }
3053
+ return false;
3054
+ }
3055
+ function $t(e, t) {
3056
+ let { node: r } = e, s = [H(e, t, "returnType")];
3057
+ return r.predicate && s.push(t("predicate")), s;
3058
+ }
3059
+ function Xi(e, t, r) {
3060
+ let { node: n } = e, s = t.semi ? ";" : "", u = [];
3061
+ if (n.argument) {
3062
+ let o = r("argument");
3063
+ dl(t, n.argument) ? o = ["(", f([F, o]), F, ")"] : (De(n.argument) || n.argument.type === "SequenceExpression" || t.experimentalTernaries && n.argument.type === "ConditionalExpression" && (n.argument.consequent.type === "ConditionalExpression" || n.argument.alternate.type === "ConditionalExpression")) && (o = l([B("("), f([E, o]), E, B(")")])), u.push(" ", o);
3064
+ }
3065
+ let i = T(n, h.Dangling), a = s && i && T(n, h.Last | h.Line);
3066
+ return a && u.push(s), i && u.push(" ", J(e, t)), a || u.push(s), u;
3067
+ }
3068
+ function Hi(e, t, r) {
3069
+ return ["return", Xi(e, t, r)];
3070
+ }
3071
+ function Vi(e, t, r) {
3072
+ return ["throw", Xi(e, t, r)];
3073
+ }
3074
+ function dl(e, t) {
3075
+ if (Le(e.originalText, t) || T(t, h.Leading, (r) => de(e.originalText, q(r), k(r))) && !X(t)) return true;
3076
+ if (Rt(t)) {
3077
+ let r = t, n;
3078
+ for (; n = ou(r); ) if (r = n, Le(e.originalText, r)) return true;
3079
+ }
3080
+ return false;
3081
+ }
3082
+ var hs = /* @__PURE__ */ new WeakMap();
3083
+ function $i(e) {
3084
+ return hs.has(e) || hs.set(e, e.type === "ConditionalExpression" && !ae(e, (t) => t.type === "ObjectExpression")), hs.get(e);
3085
+ }
3086
+ var Ki = (e) => e.type === "SequenceExpression";
3087
+ function Qi(e, t, r, n = {}) {
3088
+ let s = [], u, i = [], a = false, o = !n.expandLastArg && e.node.body.type === "ArrowFunctionExpression", p;
3089
+ (function S() {
3090
+ let { node: g } = e, _ = xl(e, t, r, n);
3091
+ if (s.length === 0) s.push(_);
3092
+ else {
3093
+ let { leading: v, trailing: j } = cs(e, t);
3094
+ s.push([v, _]), i.unshift(j);
3095
+ }
3096
+ o && (a || (a = g.returnType && z(g).length > 0 || g.typeParameters || z(g).some((v) => v.type !== "Identifier"))), !o || g.body.type !== "ArrowFunctionExpression" ? (u = r("body", n), p = g.body) : e.call(S, "body");
3097
+ })();
3098
+ let y = !Le(t.originalText, p) && (Ki(p) || hl(p, u, t) || !a && $i(p)), D = e.key === "callee" && lt(e.parent), m = Symbol("arrow-chain"), C = gl(e, n, { signatureDocs: s, shouldBreak: a }), c = false, A = false, d = false;
3099
+ return o && (D || n.assignmentLayout) && (A = true, d = !T(e.node, h.Leading & h.Line), c = n.assignmentLayout === "chain-tail-arrow-chain" || D && !y), u = Sl(e, t, n, { bodyDoc: u, bodyComments: i, functionBody: p, shouldPutBodyOnSameLine: y }), l([l(A ? f([d ? E : "", C]) : C, { shouldBreak: c, id: m }), " =>", o ? dt(u, { groupId: m }) : l(u), o && D ? B(E, "", { groupId: m }) : ""]);
3100
+ }
3101
+ function xl(e, t, r, n) {
3102
+ let { node: s } = e, u = [];
3103
+ if (s.async && u.push("async "), Fn(e, t)) u.push(r(["params", 0]));
3104
+ else {
3105
+ let a = n.expandLastArg || n.expandFirstArg, o = $t(e, r);
3106
+ if (a) {
3107
+ if (re(o)) throw new yt();
3108
+ o = l(or(o));
3109
+ }
3110
+ u.push(l([Ge(e, r, t, a, true), o]));
3111
+ }
3112
+ let i = J(e, t, { filter(a) {
3113
+ let o = ut(t.originalText, k(a));
3114
+ return o !== false && t.originalText.slice(o, o + 2) === "=>";
3115
+ } });
3116
+ return i && u.push(" ", i), u;
3117
+ }
3118
+ function hl(e, t, r) {
3119
+ var n, s;
3120
+ return Y(e) || se(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || X(e) || ((n = t.label) == null ? void 0 : n.hug) !== false && (((s = t.label) == null ? void 0 : s.embed) || wr(e, r.originalText));
3121
+ }
3122
+ function gl(e, t, { signatureDocs: r, shouldBreak: n }) {
3123
+ if (r.length === 1) return r[0];
3124
+ let { parent: s, key: u } = e;
3125
+ return u !== "callee" && lt(s) || De(s) ? l([r[0], " =>", f([x, b([" =>", x], r.slice(1))])], { shouldBreak: n }) : u === "callee" && lt(s) || t.assignmentLayout ? l(b([" =>", x], r), { shouldBreak: n }) : l(f(b([" =>", x], r)), { shouldBreak: n });
3126
+ }
3127
+ function Sl(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: u, shouldPutBodyOnSameLine: i }) {
3128
+ let { node: a, parent: o } = e, p = r.expandLastArg && oe(t, "all") ? B(",") : "", y = (r.expandLastArg || o.type === "JSXExpressionContainer") && !T(a) ? E : "";
3129
+ return i && $i(u) ? [" ", l([B("", "("), f([E, n]), B("", ")"), p, y]), s] : (Ki(u) && (n = l(["(", f([E, n]), E, ")"])), i ? [" ", n, s] : [f([x, n, s]), p, y]);
3130
+ }
3131
+ var Bl = (e, t, r) => {
3132
+ if (!(e && t == null)) {
3133
+ if (t.findLast) return t.findLast(r);
3134
+ for (let n = t.length - 1; n >= 0; n--) {
3135
+ let s = t[n];
3136
+ if (r(s, n, t)) return s;
3137
+ }
3138
+ }
3139
+ }, zi = Bl;
3140
+ function Er(e, t, r, n) {
3141
+ let { node: s } = e, u = [], i = zi(false, s[n], (a) => a.type !== "EmptyStatement");
3142
+ return e.each(({ node: a }) => {
3143
+ a.type !== "EmptyStatement" && (u.push(r()), a !== i && (u.push(F), ce(a, t) && u.push(F)));
3144
+ }, n), u;
3145
+ }
3146
+ function Cn(e, t, r) {
3147
+ let n = bl(e, t, r), { node: s, parent: u } = e;
3148
+ if (s.type === "Program" && (u == null ? void 0 : u.type) !== "ModuleExpression") return n ? [n, F] : "";
3149
+ let i = [];
3150
+ if (s.type === "StaticBlock" && i.push("static "), i.push("{"), n) i.push(f([F, n]), F);
3151
+ else {
3152
+ let a = e.grandparent;
3153
+ u.type === "ArrowFunctionExpression" || u.type === "FunctionExpression" || u.type === "FunctionDeclaration" || u.type === "ComponentDeclaration" || u.type === "HookDeclaration" || u.type === "ObjectMethod" || u.type === "ClassMethod" || u.type === "ClassPrivateMethod" || u.type === "ForStatement" || u.type === "WhileStatement" || u.type === "DoWhileStatement" || u.type === "DoExpression" || u.type === "ModuleExpression" || u.type === "CatchClause" && !a.finalizer || u.type === "TSModuleDeclaration" || s.type === "StaticBlock" || i.push(F);
3154
+ }
3155
+ return i.push("}"), i;
3156
+ }
3157
+ function bl(e, t, r) {
3158
+ let { node: n } = e, s = O(n.directives), u = n.body.some((o) => o.type !== "EmptyStatement"), i = T(n, h.Dangling);
3159
+ if (!s && !u && !i) return "";
3160
+ let a = [];
3161
+ return s && (a.push(Er(e, t, r, "directives")), (u || i) && (a.push(F), ce(M(false, n.directives, -1), t) && a.push(F))), u && a.push(Er(e, t, r, "body")), i && a.push(J(e, t)), a;
3162
+ }
3163
+ function Pl(e) {
3164
+ let t = /* @__PURE__ */ new WeakMap();
3165
+ return function(r) {
3166
+ return t.has(r) || t.set(r, Symbol(e)), t.get(r);
3167
+ };
3168
+ }
3169
+ var An = Pl;
3170
+ function kl(e) {
3171
+ switch (e) {
3172
+ case null:
3173
+ return "";
3174
+ case "PlusOptional":
3175
+ return "+?";
3176
+ case "MinusOptional":
3177
+ return "-?";
3178
+ case "Optional":
3179
+ return "?";
3180
+ }
3181
+ }
3182
+ function Zi(e, t, r) {
3183
+ let { node: n } = e;
3184
+ return l([n.variance ? r("variance") : "", "[", f([r("keyTparam"), " in ", r("sourceType")]), "]", kl(n.optional), ": ", r("propType")]);
3185
+ }
3186
+ function gs(e, t) {
3187
+ return e === "+" || e === "-" ? e + t : t;
3188
+ }
3189
+ function ea(e, t, r) {
3190
+ let { node: n } = e, s = t.objectWrap === "preserve" && de(t.originalText, q(n), q(n.typeParameter));
3191
+ return l(["{", f([t.bracketSpacing ? x : E, l([r("typeParameter"), n.optional ? gs(n.optional, "?") : "", n.typeAnnotation ? ": " : "", r("typeAnnotation")]), t.semi ? B(";") : ""]), J(e, t), t.bracketSpacing ? x : E, "}"], { shouldBreak: s });
3192
+ }
3193
+ var Fr = An("typeParameters");
3194
+ function Il(e, t, r) {
3195
+ let { node: n } = e;
3196
+ return z(n).length === 1 && n.type.startsWith("TS") && !n[r][0].constraint && e.parent.type === "ArrowFunctionExpression" && !(t.filepath && /\.ts$/u.test(t.filepath));
3197
+ }
3198
+ function wt(e, t, r, n) {
3199
+ let { node: s } = e;
3200
+ if (!s[n]) return "";
3201
+ if (!Array.isArray(s[n])) return r(n);
3202
+ let u = kt(e.grandparent), i = e.match((p) => !(p[n].length === 1 && Me(p[n][0])), void 0, (p, y) => y === "typeAnnotation", (p) => p.type === "Identifier", As);
3203
+ if (s[n].length === 0 || !i && (u || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || ds(s[n][0])))) return ["<", b(", ", e.map(r, n)), Ll(e, t), ">"];
3204
+ let o = s.type === "TSTypeParameterInstantiation" ? "" : Il(e, t, n) ? "," : oe(t) ? B(",") : "";
3205
+ return l(["<", f([E, b([",", x], e.map(r, n))]), o, E, ">"], { id: Fr(s) });
3206
+ }
3207
+ function Ll(e, t) {
3208
+ let { node: r } = e;
3209
+ if (!T(r, h.Dangling)) return "";
3210
+ let n = !T(r, h.Line), s = J(e, t, { indent: !n });
3211
+ return n ? s : [s, F];
3212
+ }
3213
+ function Tn(e, t, r) {
3214
+ let { node: n, parent: s } = e, u = [n.const ? "const " : ""], i = n.type === "TSTypeParameter" ? r("name") : n.name;
3215
+ if (s.type === "TSMappedType") return s.readonly && u.push(gs(s.readonly, "readonly"), " "), u.push("[", i), n.constraint && u.push(" in ", r("constraint")), s.nameType && u.push(" as ", e.callParent(() => r("nameType"))), u.push("]"), u;
3216
+ if (n.variance && u.push(r("variance")), n.in && u.push("in "), n.out && u.push("out "), u.push(i), n.bound && (n.usesExtendsBound && u.push(" extends "), u.push(H(e, r, "bound"))), n.constraint) {
3217
+ let a = Symbol("constraint");
3218
+ u.push(" extends", l(f(x), { id: a }), ve, dt(r("constraint"), { groupId: a }));
3219
+ }
3220
+ return n.default && u.push(" = ", r("default")), l(u);
3221
+ }
3222
+ var ta = R(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
3223
+ function dn(e, t, r) {
3224
+ let { node: n } = e, s = [K(e), Xt(e), "class"], u = T(n.id, h.Trailing) || T(n.typeParameters, h.Trailing) || T(n.superClass) || O(n.extends) || O(n.mixins) || O(n.implements), i = [], a = [];
3225
+ if (n.id && i.push(" ", r("id")), i.push(r("typeParameters")), n.superClass) {
3226
+ let y = [Ol(e, t, r), r(n.superTypeArguments ? "superTypeArguments" : "superTypeParameters")], D = e.call((m) => ["extends ", ye(m, y, t)], "superClass");
3227
+ u ? a.push(x, l(D)) : a.push(" ", D);
3228
+ } else a.push(Ss(e, t, r, "extends"));
3229
+ a.push(Ss(e, t, r, "mixins"), Ss(e, t, r, "implements"));
3230
+ let o;
3231
+ if (u) {
3232
+ let y;
3233
+ sa(n) ? y = [...i, f(a)] : y = f([...i, a]), o = ra(n), s.push(l(y, { id: o }));
3234
+ } else s.push(...i, ...a);
3235
+ let p = n.body;
3236
+ return u && O(p.body) ? s.push(B(F, " ", { groupId: o })) : s.push(" "), s.push(r("body")), s;
3237
+ }
3238
+ var ra = An("heritageGroup");
3239
+ function na(e) {
3240
+ return B(F, "", { groupId: ra(e) });
3241
+ }
3242
+ function wl(e) {
3243
+ return ["extends", "mixins", "implements"].reduce((t, r) => t + (Array.isArray(e[r]) ? e[r].length : 0), e.superClass ? 1 : 0) > 1;
3244
+ }
3245
+ function sa(e) {
3246
+ return e.typeParameters && !T(e.typeParameters, h.Trailing | h.Line) && !wl(e);
3247
+ }
3248
+ function Ss(e, t, r, n) {
3249
+ let { node: s } = e;
3250
+ if (!O(s[n])) return "";
3251
+ let u = J(e, t, { marker: n });
3252
+ return [sa(s) ? B(" ", x, { groupId: Fr(s.typeParameters) }) : x, u, u && F, n, l(f([x, b([",", x], e.map(r, n))]))];
3253
+ }
3254
+ function Ol(e, t, r) {
3255
+ let n = r("superClass"), { parent: s } = e;
3256
+ return s.type === "AssignmentExpression" ? l(B(["(", f([E, n]), E, ")"], n)) : n;
3257
+ }
3258
+ function xn(e, t, r) {
3259
+ let { node: n } = e, s = [];
3260
+ return O(n.decorators) && s.push(Es(e, t, r)), s.push(Ht(n)), n.static && s.push("static "), s.push(Xt(e)), n.override && s.push("override "), s.push(fr(e, t, r)), s;
3261
+ }
3262
+ function hn(e, t, r) {
3263
+ let { node: n } = e, s = [], u = t.semi ? ";" : "";
3264
+ O(n.decorators) && s.push(Es(e, t, r)), s.push(K(e), Ht(n)), n.static && s.push("static "), s.push(Xt(e)), n.override && s.push("override "), n.readonly && s.push("readonly "), n.variance && s.push(r("variance")), (n.type === "ClassAccessorProperty" || n.type === "AccessorProperty" || n.type === "TSAbstractAccessorProperty") && s.push("accessor "), s.push(Et(e, t, r), $(e), ln(e), H(e, r));
3265
+ let i = n.type === "TSAbstractPropertyDefinition" || n.type === "TSAbstractAccessorProperty";
3266
+ return [xt(e, t, r, s, " =", i ? void 0 : "value"), u];
3267
+ }
3268
+ function ua(e, t, r) {
3269
+ let { node: n } = e, s = [];
3270
+ return e.each(({ node: u, next: i, isLast: a }) => {
3271
+ s.push(r()), !t.semi && ta(u) && _l(u, i) && s.push(";"), a || (s.push(F), ce(u, t) && s.push(F));
3272
+ }, "body"), T(n, h.Dangling) && s.push(J(e, t)), ["{", s.length > 0 ? [f([F, s]), F] : "", "}"];
3273
+ }
3274
+ function _l(e, t) {
3275
+ var s;
3276
+ let { type: r, name: n } = e.key;
3277
+ if (!e.computed && r === "Identifier" && (n === "static" || n === "get" || n === "set") && !e.value && !e.typeAnnotation) return true;
3278
+ if (!t || t.static || t.accessibility || t.readonly) return false;
3279
+ if (!t.computed) {
3280
+ let u = (s = t.key) == null ? void 0 : s.name;
3281
+ if (u === "in" || u === "instanceof") return true;
3282
+ }
3283
+ if (ta(t) && t.variance && !t.static && !t.declare) return true;
3284
+ switch (t.type) {
3285
+ case "ClassProperty":
3286
+ case "PropertyDefinition":
3287
+ case "TSAbstractPropertyDefinition":
3288
+ return t.computed;
3289
+ case "MethodDefinition":
3290
+ case "TSAbstractMethodDefinition":
3291
+ case "ClassMethod":
3292
+ case "ClassPrivateMethod": {
3293
+ if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set") return false;
3294
+ let i = t.value ? t.value.generator : t.generator;
3295
+ return !!(t.computed || i);
3296
+ }
3297
+ case "TSIndexSignature":
3298
+ return true;
3299
+ }
3300
+ return false;
3301
+ }
3302
+ var vl = R(["TSAsExpression", "TSTypeAssertion", "TSNonNullExpression", "TSInstantiationExpression", "TSSatisfiesExpression"]);
3303
+ function Bs(e) {
3304
+ return vl(e) ? Bs(e.expression) : e;
3305
+ }
3306
+ var ia = R(["FunctionExpression", "ArrowFunctionExpression"]);
3307
+ function aa(e) {
3308
+ return e.type === "MemberExpression" || e.type === "OptionalMemberExpression" || e.type === "Identifier" && e.name !== "undefined";
3309
+ }
3310
+ function oa(e, t) {
3311
+ if (t.semi || bs(e, t) || Ps(e, t)) return false;
3312
+ let { node: r, key: n, parent: s } = e;
3313
+ return !!(r.type === "ExpressionStatement" && (n === "body" && (s.type === "Program" || s.type === "BlockStatement" || s.type === "StaticBlock" || s.type === "TSModuleBlock") || n === "consequent" && s.type === "SwitchCase") && e.call(() => pa(e, t), "expression"));
3314
+ }
3315
+ function pa(e, t) {
3316
+ let { node: r } = e;
3317
+ switch (r.type) {
3318
+ case "ParenthesizedExpression":
3319
+ case "TypeCastExpression":
3320
+ case "ArrayExpression":
3321
+ case "ArrayPattern":
3322
+ case "TemplateLiteral":
3323
+ case "TemplateElement":
3324
+ case "RegExpLiteral":
3325
+ return true;
3326
+ case "ArrowFunctionExpression":
3327
+ if (!Fn(e, t)) return true;
3328
+ break;
3329
+ case "UnaryExpression": {
3330
+ let { prefix: n, operator: s } = r;
3331
+ if (n && (s === "+" || s === "-")) return true;
3332
+ break;
3333
+ }
3334
+ case "BindExpression":
3335
+ if (!r.object) return true;
3336
+ break;
3337
+ case "Literal":
3338
+ if (r.regex) return true;
3339
+ break;
3340
+ default:
3341
+ if (X(r)) return true;
3342
+ }
3343
+ return ke(e, t) ? true : Rt(r) ? e.call(() => pa(e, t), ...kr(r)) : false;
3344
+ }
3345
+ function bs({ node: e, parent: t }, r) {
3346
+ return (r.parentParser === "markdown" || r.parentParser === "mdx") && e.type === "ExpressionStatement" && X(e.expression) && t.type === "Program" && t.body.length === 1;
3347
+ }
3348
+ function Ps({ node: e, parent: t }, r) {
3349
+ return (r.parser === "__vue_event_binding" || r.parser === "__vue_ts_event_binding") && e.type === "ExpressionStatement" && t.type === "Program" && t.body.length === 1;
3350
+ }
3351
+ function ca(e, t, r) {
3352
+ let n = [r("expression")];
3353
+ if (Ps(e, t)) {
3354
+ let s = Bs(e.node.expression);
3355
+ (ia(s) || aa(s)) && n.push(";");
3356
+ } else bs(e, t) || t.semi && n.push(";");
3357
+ return n;
3358
+ }
3359
+ function la(e, t, r) {
3360
+ if (t.__isVueBindings || t.__isVueForBindingLeft) {
3361
+ let n = e.map(r, "program", "body", 0, "params");
3362
+ if (n.length === 1) return n[0];
3363
+ let s = b([",", x], n);
3364
+ return t.__isVueForBindingLeft ? ["(", f([E, l(s)]), E, ")"] : s;
3365
+ }
3366
+ if (t.__isEmbeddedTypescriptGenericParameters) {
3367
+ let n = e.map(r, "program", "body", 0, "typeParameters", "params");
3368
+ return b([",", x], n);
3369
+ }
3370
+ }
3371
+ function Da(e, t) {
3372
+ let { node: r } = e;
3373
+ switch (r.type) {
3374
+ case "RegExpLiteral":
3375
+ return ma(r);
3376
+ case "BigIntLiteral":
3377
+ return gn(r.extra.raw);
3378
+ case "NumericLiteral":
3379
+ return ft(r.extra.raw);
3380
+ case "StringLiteral":
3381
+ return _e(rt(r.extra.raw, t));
3382
+ case "NullLiteral":
3383
+ return "null";
3384
+ case "BooleanLiteral":
3385
+ return String(r.value);
3386
+ case "DirectiveLiteral":
3387
+ return ya(r.extra.raw, t);
3388
+ case "Literal": {
3389
+ if (r.regex) return ma(r.regex);
3390
+ if (r.bigint) return gn(r.raw);
3391
+ let { value: n } = r;
3392
+ return typeof n == "number" ? ft(r.raw) : typeof n == "string" ? jl(e) ? ya(r.raw, t) : _e(rt(r.raw, t)) : String(n);
3393
+ }
3394
+ }
3395
+ }
3396
+ function jl(e) {
3397
+ if (e.key !== "expression") return;
3398
+ let { parent: t } = e;
3399
+ return t.type === "ExpressionStatement" && t.directive;
3400
+ }
3401
+ function gn(e) {
3402
+ return e.toLowerCase();
3403
+ }
3404
+ function ma({ pattern: e, flags: t }) {
3405
+ return t = [...t].sort().join(""), `/${e}/${t}`;
3406
+ }
3407
+ function ya(e, t) {
3408
+ let r = e.slice(1, -1);
3409
+ if (r.includes('"') || r.includes("'")) return e;
3410
+ let n = t.singleQuote ? "'" : '"';
3411
+ return n + r + n;
3412
+ }
3413
+ function Ml(e, t, r) {
3414
+ let n = e.originalText.slice(t, r);
3415
+ for (let s of e[Symbol.for("comments")]) {
3416
+ let u = q(s);
3417
+ if (u > r) break;
3418
+ let i = k(s);
3419
+ if (i < t) continue;
3420
+ let a = i - u;
3421
+ n = n.slice(0, u - t) + " ".repeat(a) + n.slice(i - t);
3422
+ }
3423
+ return n;
3424
+ }
3425
+ var ks = Ml;
3426
+ function fa(e, t, r) {
3427
+ let { node: n } = e;
3428
+ return ["import", n.phase ? ` ${n.phase}` : "", Ls(n), Ca(e, t, r), Fa(e, t, r), Ta(e, t, r), t.semi ? ";" : ""];
3429
+ }
3430
+ var Ea = (e) => e.type === "ExportDefaultDeclaration" || e.type === "DeclareExportDeclaration" && e.default;
3431
+ function Sn(e, t, r) {
3432
+ let { node: n } = e, s = [gi(e, t, r), K(e), "export", Ea(n) ? " default" : ""], { declaration: u, exported: i } = n;
3433
+ return T(n, h.Dangling) && (s.push(" ", J(e, t)), Or(n) && s.push(F)), u ? s.push(" ", r("declaration")) : (s.push(ql(n)), n.type === "ExportAllDeclaration" || n.type === "DeclareExportAllDeclaration" ? (s.push(" *"), i && s.push(" as ", r("exported"))) : s.push(Ca(e, t, r)), s.push(Fa(e, t, r), Ta(e, t, r))), s.push(Jl(n, t)), s;
3434
+ }
3435
+ var Rl = R(["ClassDeclaration", "ComponentDeclaration", "FunctionDeclaration", "TSInterfaceDeclaration", "DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "HookDeclaration", "TSDeclareFunction", "EnumDeclaration"]);
3436
+ function Jl(e, t) {
3437
+ return t.semi && (!e.declaration || Ea(e) && !Rl(e.declaration)) ? ";" : "";
3438
+ }
3439
+ function Is(e, t = true) {
3440
+ return e && e !== "value" ? `${t ? " " : ""}${e}${t ? "" : " "}` : "";
3441
+ }
3442
+ function Ls(e, t) {
3443
+ return Is(e.importKind, t);
3444
+ }
3445
+ function ql(e) {
3446
+ return Is(e.exportKind);
3447
+ }
3448
+ function Fa(e, t, r) {
3449
+ let { node: n } = e;
3450
+ if (!n.source) return "";
3451
+ let s = [];
3452
+ return Aa(n, t) && s.push(" from"), s.push(" ", r("source")), s;
3453
+ }
3454
+ function Ca(e, t, r) {
3455
+ let { node: n } = e;
3456
+ if (!Aa(n, t)) return "";
3457
+ let s = [" "];
3458
+ if (O(n.specifiers)) {
3459
+ let u = [], i = [];
3460
+ e.each(() => {
3461
+ let a = e.node.type;
3462
+ if (a === "ExportNamespaceSpecifier" || a === "ExportDefaultSpecifier" || a === "ImportNamespaceSpecifier" || a === "ImportDefaultSpecifier") u.push(r());
3463
+ else if (a === "ExportSpecifier" || a === "ImportSpecifier") i.push(r());
3464
+ else throw new qe(n, "specifier");
3465
+ }, "specifiers"), s.push(b(", ", u)), i.length > 0 && (u.length > 0 && s.push(", "), i.length > 1 || u.length > 0 || n.specifiers.some((o) => T(o)) ? s.push(l(["{", f([t.bracketSpacing ? x : E, b([",", x], i)]), B(oe(t) ? "," : ""), t.bracketSpacing ? x : E, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...i, t.bracketSpacing ? " " : "", "}"]));
3466
+ } else s.push("{}");
3467
+ return s;
3468
+ }
3469
+ function Aa(e, t) {
3470
+ return e.type !== "ImportDeclaration" || O(e.specifiers) || e.importKind === "type" ? true : ks(t, q(e), q(e.source)).trimEnd().endsWith("from");
3471
+ }
3472
+ function Wl(e, t) {
3473
+ var n, s;
3474
+ if ((n = e.extra) != null && n.deprecatedAssertSyntax) return "assert";
3475
+ let r = ks(t, k(e.source), (s = e.attributes) != null && s[0] ? q(e.attributes[0]) : k(e)).trimStart();
3476
+ return r.startsWith("assert") ? "assert" : r.startsWith("with") || O(e.attributes) ? "with" : void 0;
3477
+ }
3478
+ function Ta(e, t, r) {
3479
+ let { node: n } = e;
3480
+ if (!n.source) return "";
3481
+ let s = Wl(n, t);
3482
+ if (!s) return "";
3483
+ let u = [` ${s} {`];
3484
+ return O(n.attributes) && (t.bracketSpacing && u.push(" "), u.push(b(", ", e.map(r, "attributes"))), t.bracketSpacing && u.push(" ")), u.push("}"), u;
3485
+ }
3486
+ function da(e, t, r) {
3487
+ let { node: n } = e, { type: s } = n, u = s.startsWith("Import"), i = u ? "imported" : "local", a = u ? "local" : "exported", o = n[i], p = n[a], y = "", D = "";
3488
+ return s === "ExportNamespaceSpecifier" || s === "ImportNamespaceSpecifier" ? y = "*" : o && (y = r(i)), p && !Gl(n) && (D = r(a)), [Is(s === "ImportSpecifier" ? n.importKind : n.exportKind, false), y, y && D ? " as " : "", D];
3489
+ }
3490
+ function Gl(e) {
3491
+ if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier") return false;
3492
+ let { local: t, [e.type === "ImportSpecifier" ? "imported" : "exported"]: r } = e;
3493
+ if (t.type !== r.type || !nu(t, r)) return false;
3494
+ if (te(t)) return t.value === r.value && fe(t) === fe(r);
3495
+ switch (t.type) {
3496
+ case "Identifier":
3497
+ return t.name === r.name;
3498
+ default:
3499
+ return false;
3500
+ }
3501
+ }
3502
+ function ht(e, t, r) {
3503
+ var j;
3504
+ let n = t.semi ? ";" : "", { node: s } = e, u = s.type === "ObjectTypeAnnotation", i = s.type === "TSEnumDeclaration" || s.type === "EnumBooleanBody" || s.type === "EnumNumberBody" || s.type === "EnumBigIntBody" || s.type === "EnumStringBody" || s.type === "EnumSymbolBody", a = [s.type === "TSTypeLiteral" || i ? "members" : s.type === "TSInterfaceBody" ? "body" : "properties"];
3505
+ u && a.push("indexers", "callProperties", "internalSlots");
3506
+ let o = a.flatMap((I) => e.map(({ node: U }) => ({ node: U, printed: r(), loc: q(U) }), I));
3507
+ a.length > 1 && o.sort((I, U) => I.loc - U.loc);
3508
+ let { parent: p, key: y } = e, D = u && y === "body" && (p.type === "InterfaceDeclaration" || p.type === "DeclareInterface" || p.type === "DeclareClass"), m = s.type === "TSInterfaceBody" || i || D || s.type === "ObjectPattern" && p.type !== "FunctionDeclaration" && p.type !== "FunctionExpression" && p.type !== "ArrowFunctionExpression" && p.type !== "ObjectMethod" && p.type !== "ClassMethod" && p.type !== "ClassPrivateMethod" && p.type !== "AssignmentPattern" && p.type !== "CatchClause" && s.properties.some((I) => I.value && (I.value.type === "ObjectPattern" || I.value.type === "ArrayPattern")) || s.type !== "ObjectPattern" && t.objectWrap === "preserve" && o.length > 0 && de(t.originalText, q(s), o[0].loc), C = D ? ";" : s.type === "TSInterfaceBody" || s.type === "TSTypeLiteral" ? B(n, ";") : ",", c = s.type === "RecordExpression" ? "#{" : s.exact ? "{|" : "{", A = s.exact ? "|}" : "}", d = [], S = o.map((I) => {
3509
+ let U = [...d, l(I.printed)];
3510
+ return d = [C, x], (I.node.type === "TSPropertySignature" || I.node.type === "TSMethodSignature" || I.node.type === "TSConstructSignatureDeclaration" || I.node.type === "TSCallSignatureDeclaration") && T(I.node, h.PrettierIgnore) && d.shift(), ce(I.node, t) && d.push(F), U;
3511
+ });
3512
+ if (s.inexact || s.hasUnknownMembers) {
3513
+ let I;
3514
+ if (T(s, h.Dangling)) {
3515
+ let U = T(s, h.Line);
3516
+ I = [J(e, t), U || Z(t.originalText, k(M(false, ct(s), -1))) ? F : x, "..."];
3517
+ } else I = ["..."];
3518
+ S.push([...d, ...I]);
3519
+ }
3520
+ let g = (j = M(false, o, -1)) == null ? void 0 : j.node, _ = !(s.inexact || s.hasUnknownMembers || g && (g.type === "RestElement" || (g.type === "TSPropertySignature" || g.type === "TSCallSignatureDeclaration" || g.type === "TSMethodSignature" || g.type === "TSConstructSignatureDeclaration") && T(g, h.PrettierIgnore))), v;
3521
+ if (S.length === 0) {
3522
+ if (!T(s, h.Dangling)) return [c, A, H(e, r)];
3523
+ v = l([c, J(e, t, { indent: true }), E, A, $(e), H(e, r)]);
3524
+ } else v = [D && O(s.properties) ? na(p) : "", c, f([t.bracketSpacing ? x : E, ...S]), B(_ && (C !== "," || oe(t)) ? C : ""), t.bracketSpacing ? x : E, A, $(e), H(e, r)];
3525
+ return e.match((I) => I.type === "ObjectPattern" && !O(I.decorators), ws) || Me(s) && (e.match(void 0, (I, U) => U === "typeAnnotation", (I, U) => U === "typeAnnotation", ws) || e.match(void 0, (I, U) => I.type === "FunctionTypeParam" && U === "typeAnnotation", ws)) || !m && e.match((I) => I.type === "ObjectPattern", (I) => I.type === "AssignmentExpression" || I.type === "VariableDeclarator") ? v : l(v, { shouldBreak: m });
3526
+ }
3527
+ function ws(e, t) {
3528
+ return (t === "params" || t === "parameters" || t === "this" || t === "rest") && Ts(e);
3529
+ }
3530
+ function Ul(e) {
3531
+ let t = [e];
3532
+ for (let r = 0; r < t.length; r++) {
3533
+ let n = t[r];
3534
+ for (let s of ["test", "consequent", "alternate"]) {
3535
+ let u = n[s];
3536
+ if (X(u)) return true;
3537
+ u.type === "ConditionalExpression" && t.push(u);
3538
+ }
3539
+ }
3540
+ return false;
3541
+ }
3542
+ function Yl(e, t, r) {
3543
+ let { node: n } = e, s = n.type === "ConditionalExpression", u = s ? "alternate" : "falseType", { parent: i } = e, a = s ? r("test") : [r("checkType"), " ", "extends", " ", r("extendsType")];
3544
+ return i.type === n.type && i[u] === n ? Be(2, a) : a;
3545
+ }
3546
+ var Nl = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3547
+ function Xl(e) {
3548
+ let { node: t } = e;
3549
+ if (t.type !== "ConditionalExpression") return false;
3550
+ let r, n = t;
3551
+ for (let s = 0; !r; s++) {
3552
+ let u = e.getParentNode(s);
3553
+ if (u.type === "ChainExpression" && u.expression === n || L(u) && u.callee === n || W(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3554
+ n = u;
3555
+ continue;
3556
+ }
3557
+ u.type === "NewExpression" && u.callee === n || Ae(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3558
+ }
3559
+ return n === t ? false : r[Nl.get(r.type)] === n;
3560
+ }
3561
+ function xa(e, t, r) {
3562
+ let { node: n } = e, s = n.type === "ConditionalExpression", u = s ? "consequent" : "trueType", i = s ? "alternate" : "falseType", a = s ? ["test"] : ["checkType", "extendsType"], o = n[u], p = n[i], y = [], D = false, { parent: m } = e, C = m.type === n.type && a.some((G) => m[G] === n), c = m.type === n.type && !C, A, d, S = 0;
3563
+ do
3564
+ d = A || n, A = e.getParentNode(S), S++;
3565
+ while (A && A.type === n.type && a.every((G) => A[G] !== d));
3566
+ let g = A || m, _ = d;
3567
+ if (s && (X(n[a[0]]) || X(o) || X(p) || Ul(_))) {
3568
+ D = true, c = true;
3569
+ let G = (Q) => [B("("), f([E, Q]), E, B(")")], ue = (Q) => Q.type === "NullLiteral" || Q.type === "Literal" && Q.value === null || Q.type === "Identifier" && Q.name === "undefined";
3570
+ y.push(" ? ", ue(o) ? r(u) : G(r(u)), " : ", p.type === n.type || ue(p) ? r(i) : G(r(i)));
3571
+ } else {
3572
+ let G = (Q) => t.useTabs ? f(r(Q)) : Be(2, r(Q)), ue = [x, "? ", o.type === n.type ? B("", "(") : "", G(u), o.type === n.type ? B("", ")") : "", x, ": ", G(i)];
3573
+ y.push(m.type !== n.type || m[i] === n || C ? ue : t.useTabs ? Rr(f(ue)) : Be(Math.max(0, t.tabWidth - 2), ue));
3574
+ }
3575
+ let v = [u, i, ...a].some((G) => T(n[G], (ue) => ee(ue) && de(t.originalText, q(ue), k(ue)))), j = (G) => m === g ? l(G, { shouldBreak: v }) : v ? [G, Ee] : G, I = !D && (W(m) || m.type === "NGPipeExpression" && m.left === n) && !m.computed, U = Xl(e), P = j([Yl(e, t, r), c ? y : f(y), s && I && !U ? E : ""]);
3576
+ return C || U ? l([f([E, P]), E]) : P;
3577
+ }
3578
+ function Hl(e, t) {
3579
+ return (W(t) || t.type === "NGPipeExpression" && t.left === e) && !t.computed;
3580
+ }
3581
+ function Vl(e, t, r, n) {
3582
+ return [...e.map((u) => ct(u)), ct(t), ct(r)].flat().some((u) => ee(u) && de(n.originalText, q(u), k(u)));
3583
+ }
3584
+ var $l = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3585
+ function Kl(e) {
3586
+ let { node: t } = e;
3587
+ if (t.type !== "ConditionalExpression") return false;
3588
+ let r, n = t;
3589
+ for (let s = 0; !r; s++) {
3590
+ let u = e.getParentNode(s);
3591
+ if (u.type === "ChainExpression" && u.expression === n || L(u) && u.callee === n || W(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3592
+ n = u;
3593
+ continue;
3594
+ }
3595
+ u.type === "NewExpression" && u.callee === n || Ae(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3596
+ }
3597
+ return n === t ? false : r[$l.get(r.type)] === n;
3598
+ }
3599
+ var Os = (e) => [B("("), f([E, e]), E, B(")")];
3600
+ function Kt(e, t, r, n) {
3601
+ if (!t.experimentalTernaries) return xa(e, t, r);
3602
+ let { node: s } = e, u = s.type === "ConditionalExpression", i = s.type === "TSConditionalType" || s.type === "ConditionalTypeAnnotation", a = u ? "consequent" : "trueType", o = u ? "alternate" : "falseType", p = u ? ["test"] : ["checkType", "extendsType"], y = s[a], D = s[o], m = p.map((Ue) => s[Ue]), { parent: C } = e, c = C.type === s.type, A = c && p.some((Ue) => C[Ue] === s), d = c && C[o] === s, S = y.type === s.type, g = D.type === s.type, _ = g || d, v = t.tabWidth > 2 || t.useTabs, j, I, U = 0;
3603
+ do
3604
+ I = j || s, j = e.getParentNode(U), U++;
3605
+ while (j && j.type === s.type && p.every((Ue) => j[Ue] !== I));
3606
+ let P = j || C, G = n && n.assignmentLayout && n.assignmentLayout !== "break-after-operator" && (C.type === "AssignmentExpression" || C.type === "VariableDeclarator" || C.type === "ClassProperty" || C.type === "PropertyDefinition" || C.type === "ClassPrivateProperty" || C.type === "ObjectProperty" || C.type === "Property"), ue = (C.type === "ReturnStatement" || C.type === "ThrowStatement") && !(S || g), Q = u && P.type === "JSXExpressionContainer" && e.grandparent.type !== "JSXAttribute", St = Kl(e), Ft = Hl(s, C), w = i && ke(e, t), ne = v ? t.useTabs ? " " : " ".repeat(t.tabWidth - 1) : "", xe = Vl(m, y, D, t) || S || g, ot = !_ && !c && !i && (Q ? y.type === "NullLiteral" || y.type === "Literal" && y.value === null : sr(y, t) && Rn(s.test, 3)), Bt = _ || d || i && !c || c && u && Rn(s.test, 1) || ot, Ms = [];
3607
+ !S && T(y, h.Dangling) && e.call((Ue) => {
3608
+ Ms.push(J(Ue, t), F);
3609
+ }, "consequent");
3610
+ let zt = [];
3611
+ T(s.test, h.Dangling) && e.call((Ue) => {
3612
+ zt.push(J(Ue, t));
3613
+ }, "test"), !g && T(D, h.Dangling) && e.call((Ue) => {
3614
+ zt.push(J(Ue, t));
3615
+ }, "alternate"), T(s, h.Dangling) && zt.push(J(e, t));
3616
+ let Rs = Symbol("test"), Ga = Symbol("consequent"), Cr = Symbol("test-and-consequent"), Ua = u ? [Os(r("test")), s.test.type === "ConditionalExpression" ? Ee : ""] : [r("checkType"), " ", "extends", " ", s.extendsType.type === "TSConditionalType" || s.extendsType.type === "ConditionalTypeAnnotation" || s.extendsType.type === "TSMappedType" ? r("extendsType") : l(Os(r("extendsType")))], Js = l([Ua, " ?"], { id: Rs }), Ya = r(a), Ar = f([S || Q && (X(y) || c || _) ? F : x, Ms, Ya]), Na = Bt ? l([Js, _ ? Ar : B(Ar, l(Ar, { id: Ga }), { groupId: Rs })], { id: Cr }) : [Js, Ar], In = r(o), qs = ot ? B(In, Rr(Os(In)), { groupId: Cr }) : In, Zt = [Na, zt.length > 0 ? [f([F, zt]), F] : g ? F : ot ? B(x, " ", { groupId: Cr }) : x, ":", g ? " " : v ? Bt ? B(ne, B(_ || ot ? " " : ne, " "), { groupId: Cr }) : B(ne, " ") : " ", g ? qs : l([f(qs), Q && !ot ? E : ""]), Ft && !St ? E : "", xe ? Ee : ""];
3617
+ return G && !xe ? l(f([E, l(Zt)])) : G || ue ? l(f(Zt)) : St || i && A ? l([f([E, Zt]), w ? E : ""]) : C === P ? l(Zt) : Zt;
3618
+ }
3619
+ function ha(e, t, r, n) {
3620
+ let { node: s } = e;
3621
+ if (Ir(s)) return Da(e, t);
3622
+ let u = t.semi ? ";" : "", i = [];
3623
+ switch (s.type) {
3624
+ case "JsExpressionRoot":
3625
+ return r("node");
3626
+ case "JsonRoot":
3627
+ return [r("node"), F];
3628
+ case "File":
3629
+ return la(e, t, r) ?? r("program");
3630
+ case "EmptyStatement":
3631
+ return "";
3632
+ case "ExpressionStatement":
3633
+ return ca(e, t, r);
3634
+ case "ChainExpression":
3635
+ return r("expression");
3636
+ case "ParenthesizedExpression":
3637
+ return !T(s.expression) && (se(s.expression) || Y(s.expression)) ? ["(", r("expression"), ")"] : l(["(", f([E, r("expression")]), E, ")"]);
3638
+ case "AssignmentExpression":
3639
+ return vi(e, t, r);
3640
+ case "VariableDeclarator":
3641
+ return ji(e, t, r);
3642
+ case "BinaryExpression":
3643
+ case "LogicalExpression":
3644
+ return Vr(e, t, r);
3645
+ case "AssignmentPattern":
3646
+ return [r("left"), " = ", r("right")];
3647
+ case "OptionalMemberExpression":
3648
+ case "MemberExpression":
3649
+ return Ii(e, t, r);
3650
+ case "MetaProperty":
3651
+ return [r("meta"), ".", r("property")];
3652
+ case "BindExpression":
3653
+ return s.object && i.push(r("object")), i.push(l(f([E, $r(e, t, r)]))), i;
3654
+ case "Identifier":
3655
+ return [s.name, $(e), ln(e), H(e, r)];
3656
+ case "V8IntrinsicIdentifier":
3657
+ return ["%", s.name];
3658
+ case "SpreadElement":
3659
+ case "SpreadElementPattern":
3660
+ case "SpreadPropertyPattern":
3661
+ case "RestElement":
3662
+ return mn(e, r);
3663
+ case "FunctionDeclaration":
3664
+ case "FunctionExpression":
3665
+ return fn(e, r, t, n);
3666
+ case "ArrowFunctionExpression":
3667
+ return Qi(e, t, r, n);
3668
+ case "YieldExpression":
3669
+ return i.push("yield"), s.delegate && i.push("*"), s.argument && i.push(" ", r("argument")), i;
3670
+ case "AwaitExpression":
3671
+ if (i.push("await"), s.argument) {
3672
+ i.push(" ", r("argument"));
3673
+ let { parent: a } = e;
3674
+ if (L(a) && a.callee === s || W(a) && a.object === s) {
3675
+ i = [f([E, ...i]), E];
3676
+ let o = e.findAncestor((p) => p.type === "AwaitExpression" || p.type === "BlockStatement");
3677
+ if ((o == null ? void 0 : o.type) !== "AwaitExpression" || !ae(o.argument, (p) => p === s)) return l(i);
3678
+ }
3679
+ }
3680
+ return i;
3681
+ case "ExportDefaultDeclaration":
3682
+ case "ExportNamedDeclaration":
3683
+ case "ExportAllDeclaration":
3684
+ return Sn(e, t, r);
3685
+ case "ImportDeclaration":
3686
+ return fa(e, t, r);
3687
+ case "ImportSpecifier":
3688
+ case "ExportSpecifier":
3689
+ case "ImportNamespaceSpecifier":
3690
+ case "ExportNamespaceSpecifier":
3691
+ case "ImportDefaultSpecifier":
3692
+ case "ExportDefaultSpecifier":
3693
+ return da(e, t, r);
3694
+ case "ImportAttribute":
3695
+ return Dn(e, t, r);
3696
+ case "Program":
3697
+ case "BlockStatement":
3698
+ case "StaticBlock":
3699
+ return Cn(e, t, r);
3700
+ case "ClassBody":
3701
+ return ua(e, t, r);
3702
+ case "ThrowStatement":
3703
+ return Vi(e, t, r);
3704
+ case "ReturnStatement":
3705
+ return Hi(e, t, r);
3706
+ case "NewExpression":
3707
+ case "ImportExpression":
3708
+ case "OptionalCallExpression":
3709
+ case "CallExpression":
3710
+ return Kr(e, t, r);
3711
+ case "ObjectExpression":
3712
+ case "ObjectPattern":
3713
+ case "RecordExpression":
3714
+ return ht(e, t, r);
3715
+ case "Property":
3716
+ return Pt(s) ? fr(e, t, r) : Dn(e, t, r);
3717
+ case "ObjectProperty":
3718
+ return Dn(e, t, r);
3719
+ case "ObjectMethod":
3720
+ return fr(e, t, r);
3721
+ case "Decorator":
3722
+ return ["@", r("expression")];
3723
+ case "ArrayExpression":
3724
+ case "ArrayPattern":
3725
+ case "TupleExpression":
3726
+ return Vt(e, t, r);
3727
+ case "SequenceExpression": {
3728
+ let { parent: a } = e;
3729
+ if (a.type === "ExpressionStatement" || a.type === "ForStatement") {
3730
+ let o = [];
3731
+ return e.each(({ isFirst: p }) => {
3732
+ p ? o.push(r()) : o.push(",", f([x, r()]));
3733
+ }, "expressions"), l(o);
3734
+ }
3735
+ return l(b([",", x], e.map(r, "expressions")));
3736
+ }
3737
+ case "ThisExpression":
3738
+ return "this";
3739
+ case "Super":
3740
+ return "super";
3741
+ case "Directive":
3742
+ return [r("value"), u];
3743
+ case "UnaryExpression":
3744
+ return i.push(s.operator), /[a-z]$/u.test(s.operator) && i.push(" "), T(s.argument) ? i.push(l(["(", f([E, r("argument")]), E, ")"])) : i.push(r("argument")), i;
3745
+ case "UpdateExpression":
3746
+ return [s.prefix ? s.operator : "", r("argument"), s.prefix ? "" : s.operator];
3747
+ case "ConditionalExpression":
3748
+ return Kt(e, t, r, n);
3749
+ case "VariableDeclaration": {
3750
+ let a = e.map(r, "declarations"), o = e.parent, p = o.type === "ForStatement" || o.type === "ForInStatement" || o.type === "ForOfStatement", y = s.declarations.some((m) => m.init), D;
3751
+ return a.length === 1 && !T(s.declarations[0]) ? D = a[0] : a.length > 0 && (D = f(a[0])), i = [K(e), s.kind, D ? [" ", D] : "", f(a.slice(1).map((m) => [",", y && !p ? F : x, m]))], p && o.body !== s || i.push(u), l(i);
3752
+ }
3753
+ case "WithStatement":
3754
+ return l(["with (", r("object"), ")", Dt(s.body, r("body"))]);
3755
+ case "IfStatement": {
3756
+ let a = Dt(s.consequent, r("consequent")), o = l(["if (", l([f([E, r("test")]), E]), ")", a]);
3757
+ if (i.push(o), s.alternate) {
3758
+ let p = T(s.consequent, h.Trailing | h.Line) || Or(s), y = s.consequent.type === "BlockStatement" && !p;
3759
+ i.push(y ? " " : F), T(s, h.Dangling) && i.push(J(e, t), p ? F : " "), i.push("else", l(Dt(s.alternate, r("alternate"), s.alternate.type === "IfStatement")));
3760
+ }
3761
+ return i;
3762
+ }
3763
+ case "ForStatement": {
3764
+ let a = Dt(s.body, r("body")), o = J(e, t), p = o ? [o, E] : "";
3765
+ return !s.init && !s.test && !s.update ? [p, l(["for (;;)", a])] : [p, l(["for (", l([f([E, r("init"), ";", x, r("test"), ";", x, r("update")]), E]), ")", a])];
3766
+ }
3767
+ case "WhileStatement":
3768
+ return l(["while (", l([f([E, r("test")]), E]), ")", Dt(s.body, r("body"))]);
3769
+ case "ForInStatement":
3770
+ return l(["for (", r("left"), " in ", r("right"), ")", Dt(s.body, r("body"))]);
3771
+ case "ForOfStatement":
3772
+ return l(["for", s.await ? " await" : "", " (", r("left"), " of ", r("right"), ")", Dt(s.body, r("body"))]);
3773
+ case "DoWhileStatement": {
3774
+ let a = Dt(s.body, r("body"));
3775
+ return i = [l(["do", a])], s.body.type === "BlockStatement" ? i.push(" ") : i.push(F), i.push("while (", l([f([E, r("test")]), E]), ")", u), i;
3776
+ }
3777
+ case "DoExpression":
3778
+ return [s.async ? "async " : "", "do ", r("body")];
3779
+ case "BreakStatement":
3780
+ case "ContinueStatement":
3781
+ return i.push(s.type === "BreakStatement" ? "break" : "continue"), s.label && i.push(" ", r("label")), i.push(u), i;
3782
+ case "LabeledStatement":
3783
+ return s.body.type === "EmptyStatement" ? [r("label"), ":;"] : [r("label"), ": ", r("body")];
3784
+ case "TryStatement":
3785
+ return ["try ", r("block"), s.handler ? [" ", r("handler")] : "", s.finalizer ? [" finally ", r("finalizer")] : ""];
3786
+ case "CatchClause":
3787
+ if (s.param) {
3788
+ let a = T(s.param, (p) => !ee(p) || p.leading && Z(t.originalText, k(p)) || p.trailing && Z(t.originalText, q(p), { backwards: true })), o = r("param");
3789
+ return ["catch ", a ? ["(", f([E, o]), E, ") "] : ["(", o, ") "], r("body")];
3790
+ }
3791
+ return ["catch ", r("body")];
3792
+ case "SwitchStatement":
3793
+ return [l(["switch (", f([E, r("discriminant")]), E, ")"]), " {", s.cases.length > 0 ? f([F, b(F, e.map(({ node: a, isLast: o }) => [r(), !o && ce(a, t) ? F : ""], "cases"))]) : "", F, "}"];
3794
+ case "SwitchCase": {
3795
+ s.test ? i.push("case ", r("test"), ":") : i.push("default:"), T(s, h.Dangling) && i.push(" ", J(e, t));
3796
+ let a = s.consequent.filter((o) => o.type !== "EmptyStatement");
3797
+ if (a.length > 0) {
3798
+ let o = Er(e, t, r, "consequent");
3799
+ i.push(a.length === 1 && a[0].type === "BlockStatement" ? [" ", o] : f([F, o]));
3800
+ }
3801
+ return i;
3802
+ }
3803
+ case "DebuggerStatement":
3804
+ return ["debugger", u];
3805
+ case "ClassDeclaration":
3806
+ case "ClassExpression":
3807
+ return dn(e, t, r);
3808
+ case "ClassMethod":
3809
+ case "ClassPrivateMethod":
3810
+ case "MethodDefinition":
3811
+ return xn(e, t, r);
3812
+ case "ClassProperty":
3813
+ case "PropertyDefinition":
3814
+ case "ClassPrivateProperty":
3815
+ case "ClassAccessorProperty":
3816
+ case "AccessorProperty":
3817
+ return hn(e, t, r);
3818
+ case "TemplateElement":
3819
+ return _e(s.value.raw);
3820
+ case "TemplateLiteral":
3821
+ return Gr(e, r, t);
3822
+ case "TaggedTemplateExpression":
3823
+ return Xu(e, r);
3824
+ case "PrivateIdentifier":
3825
+ return ["#", s.name];
3826
+ case "PrivateName":
3827
+ return ["#", r("id")];
3828
+ case "TopicReference":
3829
+ return "%";
3830
+ case "ArgumentPlaceholder":
3831
+ return "?";
3832
+ case "ModuleExpression":
3833
+ return ["module ", r("body")];
3834
+ case "InterpreterDirective":
3835
+ default:
3836
+ throw new qe(s, "ESTree");
3837
+ }
3838
+ }
3839
+ function Bn(e, t, r) {
3840
+ let { parent: n, node: s, key: u } = e, i = [r("expression")];
3841
+ switch (s.type) {
3842
+ case "AsConstExpression":
3843
+ i.push(" as const");
3844
+ break;
3845
+ case "AsExpression":
3846
+ case "TSAsExpression":
3847
+ i.push(" as ", r("typeAnnotation"));
3848
+ break;
3849
+ case "SatisfiesExpression":
3850
+ case "TSSatisfiesExpression":
3851
+ i.push(" satisfies ", r("typeAnnotation"));
3852
+ break;
3853
+ }
3854
+ return u === "callee" && L(n) || u === "object" && W(n) ? l([f([E, ...i]), E]) : i;
3855
+ }
3856
+ function ga(e, t, r) {
3857
+ let { node: n } = e, s = [K(e), "component"];
3858
+ n.id && s.push(" ", r("id")), s.push(r("typeParameters"));
3859
+ let u = Ql(e, r, t);
3860
+ return n.rendersType ? s.push(l([u, " ", r("rendersType")])) : s.push(l([u])), n.body && s.push(" ", r("body")), t.semi && n.type === "DeclareComponent" && s.push(";"), s;
3861
+ }
3862
+ function Ql(e, t, r) {
3863
+ let { node: n } = e, s = n.params;
3864
+ if (n.rest && (s = [...s, n.rest]), s.length === 0) return ["(", J(e, r, { filter: (i) => be(r.originalText, k(i)) === ")" }), ")"];
3865
+ let u = [];
3866
+ return Zl(e, (i, a) => {
3867
+ let o = a === s.length - 1;
3868
+ o && n.rest && u.push("..."), u.push(t()), !o && (u.push(","), ce(s[a], r) ? u.push(F, F) : u.push(x));
3869
+ }), ["(", f([E, ...u]), B(oe(r, "all") && !zl(n, s) ? "," : ""), E, ")"];
3870
+ }
3871
+ function zl(e, t) {
3872
+ var r;
3873
+ return e.rest || ((r = M(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
3874
+ }
3875
+ function Zl(e, t) {
3876
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
3877
+ e.each(s, "params"), r.rest && e.call(s, "rest");
3878
+ }
3879
+ function Sa(e, t, r) {
3880
+ let { node: n } = e;
3881
+ return n.shorthand ? r("local") : [r("name"), " as ", r("local")];
3882
+ }
3883
+ function Ba(e, t, r) {
3884
+ let { node: n } = e, s = [];
3885
+ return n.name && s.push(r("name"), n.optional ? "?: " : ": "), s.push(r("typeAnnotation")), s;
3886
+ }
3887
+ function ba(e, t, r) {
3888
+ return ht(e, r, t);
3889
+ }
3890
+ function bn(e, t) {
3891
+ let { node: r } = e, n = t("id");
3892
+ r.computed && (n = ["[", n, "]"]);
3893
+ let s = "";
3894
+ return r.initializer && (s = t("initializer")), r.init && (s = t("init")), s ? [n, " = ", s] : n;
3895
+ }
3896
+ function Pa(e, t, r) {
3897
+ let { node: n } = e, s;
3898
+ if (n.type === "EnumSymbolBody" || n.explicitType) switch (n.type) {
3899
+ case "EnumBooleanBody":
3900
+ s = "boolean";
3901
+ break;
3902
+ case "EnumNumberBody":
3903
+ s = "number";
3904
+ break;
3905
+ case "EnumBigIntBody":
3906
+ s = "bigint";
3907
+ break;
3908
+ case "EnumStringBody":
3909
+ s = "string";
3910
+ break;
3911
+ case "EnumSymbolBody":
3912
+ s = "symbol";
3913
+ break;
3914
+ }
3915
+ return [s ? `of ${s} ` : "", ba(e, t, r)];
3916
+ }
3917
+ function Pn(e, t, r) {
3918
+ let { node: n } = e;
3919
+ return [K(e), n.const ? "const " : "", "enum ", t("id"), " ", n.type === "TSEnumDeclaration" ? ba(e, t, r) : t("body")];
3920
+ }
3921
+ function Ia(e, t, r) {
3922
+ let { node: n } = e, s = ["hook"];
3923
+ n.id && s.push(" ", r("id"));
3924
+ let u = Ge(e, r, t, false, true), i = $t(e, r), a = at(n, i);
3925
+ return s.push(l([a ? l(u) : u, i]), n.body ? " " : "", r("body")), s;
3926
+ }
3927
+ function La(e, t, r) {
3928
+ let { node: n } = e, s = [K(e), "hook"];
3929
+ return n.id && s.push(" ", r("id")), t.semi && s.push(";"), s;
3930
+ }
3931
+ function ka(e) {
3932
+ var r;
3933
+ let { node: t } = e;
3934
+ return t.type === "HookTypeAnnotation" && ((r = e.getParentNode(2)) == null ? void 0 : r.type) === "DeclareHook";
3935
+ }
3936
+ function wa(e, t, r) {
3937
+ let { node: n } = e, s = [];
3938
+ s.push(ka(e) ? "" : "hook ");
3939
+ let u = Ge(e, r, t, false, true), i = [];
3940
+ return i.push(ka(e) ? ": " : " => ", r("returnType")), at(n, i) && (u = l(u)), s.push(u, i), l(s);
3941
+ }
3942
+ function kn(e, t, r) {
3943
+ let { node: n } = e, s = [K(e), "interface"], u = [], i = [];
3944
+ n.type !== "InterfaceTypeAnnotation" && u.push(" ", r("id"), r("typeParameters"));
3945
+ let a = n.typeParameters && !T(n.typeParameters, h.Trailing | h.Line);
3946
+ return O(n.extends) && i.push(a ? B(" ", x, { groupId: Fr(n.typeParameters) }) : x, "extends ", (n.extends.length === 1 ? fu : f)(b([",", x], e.map(r, "extends")))), T(n.id, h.Trailing) || O(n.extends) ? a ? s.push(l([...u, f(i)])) : s.push(l(f([...u, ...i]))) : s.push(...u, ...i), s.push(" ", r("body")), l(s);
3947
+ }
3948
+ function Oa(e, t, r) {
3949
+ let { node: n } = e;
3950
+ if (Br(n)) return n.type.slice(0, -14).toLowerCase();
3951
+ let s = t.semi ? ";" : "";
3952
+ switch (n.type) {
3953
+ case "ComponentDeclaration":
3954
+ case "DeclareComponent":
3955
+ case "ComponentTypeAnnotation":
3956
+ return ga(e, t, r);
3957
+ case "ComponentParameter":
3958
+ return Sa(e, t, r);
3959
+ case "ComponentTypeParameter":
3960
+ return Ba(e, t, r);
3961
+ case "HookDeclaration":
3962
+ return Ia(e, t, r);
3963
+ case "DeclareHook":
3964
+ return La(e, t, r);
3965
+ case "HookTypeAnnotation":
3966
+ return wa(e, t, r);
3967
+ case "DeclareClass":
3968
+ return dn(e, t, r);
3969
+ case "DeclareFunction":
3970
+ return [K(e), "function ", r("id"), r("predicate"), s];
3971
+ case "DeclareModule":
3972
+ return ["declare module ", r("id"), " ", r("body")];
3973
+ case "DeclareModuleExports":
3974
+ return ["declare module.exports", H(e, r), s];
3975
+ case "DeclareNamespace":
3976
+ return ["declare namespace ", r("id"), " ", r("body")];
3977
+ case "DeclareVariable":
3978
+ return [K(e), n.kind ?? "var", " ", r("id"), s];
3979
+ case "DeclareExportDeclaration":
3980
+ case "DeclareExportAllDeclaration":
3981
+ return Sn(e, t, r);
3982
+ case "DeclareOpaqueType":
3983
+ case "OpaqueType":
3984
+ return qi(e, t, r);
3985
+ case "DeclareTypeAlias":
3986
+ case "TypeAlias":
3987
+ return zr(e, t, r);
3988
+ case "IntersectionTypeAnnotation":
3989
+ return Zr(e, t, r);
3990
+ case "UnionTypeAnnotation":
3991
+ return en(e, t, r);
3992
+ case "ConditionalTypeAnnotation":
3993
+ return Kt(e, t, r);
3994
+ case "InferTypeAnnotation":
3995
+ return nn(e, t, r);
3996
+ case "FunctionTypeAnnotation":
3997
+ return tn(e, t, r);
3998
+ case "TupleTypeAnnotation":
3999
+ return Vt(e, t, r);
4000
+ case "TupleTypeLabeledElement":
4001
+ return un(e, t, r);
4002
+ case "TupleTypeSpreadElement":
4003
+ return sn(e, t, r);
4004
+ case "GenericTypeAnnotation":
4005
+ return [r("id"), wt(e, t, r, "typeParameters")];
4006
+ case "IndexedAccessType":
4007
+ case "OptionalIndexedAccessType":
4008
+ return rn(e, t, r);
4009
+ case "TypeAnnotation":
4010
+ return an(e, t, r);
4011
+ case "TypeParameter":
4012
+ return Tn(e, t, r);
4013
+ case "TypeofTypeAnnotation":
4014
+ return pn(e, r);
4015
+ case "ExistsTypeAnnotation":
4016
+ return "*";
4017
+ case "ArrayTypeAnnotation":
4018
+ return on(r);
4019
+ case "DeclareEnum":
4020
+ case "EnumDeclaration":
4021
+ return Pn(e, r, t);
4022
+ case "EnumBooleanBody":
4023
+ case "EnumNumberBody":
4024
+ case "EnumBigIntBody":
4025
+ case "EnumStringBody":
4026
+ case "EnumSymbolBody":
4027
+ return Pa(e, r, t);
4028
+ case "EnumBooleanMember":
4029
+ case "EnumNumberMember":
4030
+ case "EnumBigIntMember":
4031
+ case "EnumStringMember":
4032
+ case "EnumDefaultedMember":
4033
+ return bn(e, r);
4034
+ case "FunctionTypeParam": {
4035
+ let u = n.name ? r("name") : e.parent.this === n ? "this" : "";
4036
+ return [u, $(e), u ? ": " : "", r("typeAnnotation")];
4037
+ }
4038
+ case "DeclareInterface":
4039
+ case "InterfaceDeclaration":
4040
+ case "InterfaceTypeAnnotation":
4041
+ return kn(e, t, r);
4042
+ case "ClassImplements":
4043
+ case "InterfaceExtends":
4044
+ return [r("id"), r("typeParameters")];
4045
+ case "NullableTypeAnnotation":
4046
+ return ["?", r("typeAnnotation")];
4047
+ case "Variance": {
4048
+ let { kind: u } = n;
4049
+ return jt.ok(u === "plus" || u === "minus"), u === "plus" ? "+" : "-";
4050
+ }
4051
+ case "KeyofTypeAnnotation":
4052
+ return ["keyof ", r("argument")];
4053
+ case "ObjectTypeCallProperty":
4054
+ return [n.static ? "static " : "", r("value")];
4055
+ case "ObjectTypeMappedTypeProperty":
4056
+ return Zi(e, t, r);
4057
+ case "ObjectTypeIndexer":
4058
+ return [n.static ? "static " : "", n.variance ? r("variance") : "", "[", r("id"), n.id ? ": " : "", r("key"), "]: ", r("value")];
4059
+ case "ObjectTypeProperty": {
4060
+ let u = "";
4061
+ return n.proto ? u = "proto " : n.static && (u = "static "), [u, n.kind !== "init" ? n.kind + " " : "", n.variance ? r("variance") : "", Et(e, t, r), $(e), Pt(n) ? "" : ": ", r("value")];
4062
+ }
4063
+ case "ObjectTypeAnnotation":
4064
+ return ht(e, t, r);
4065
+ case "ObjectTypeInternalSlot":
4066
+ return [n.static ? "static " : "", "[[", r("id"), "]]", $(e), n.method ? "" : ": ", r("value")];
4067
+ case "ObjectTypeSpreadProperty":
4068
+ return mn(e, r);
4069
+ case "QualifiedTypeofIdentifier":
4070
+ case "QualifiedTypeIdentifier":
4071
+ return [r("qualification"), ".", r("id")];
4072
+ case "NullLiteralTypeAnnotation":
4073
+ return "null";
4074
+ case "BooleanLiteralTypeAnnotation":
4075
+ return String(n.value);
4076
+ case "StringLiteralTypeAnnotation":
4077
+ return _e(rt(fe(n), t));
4078
+ case "NumberLiteralTypeAnnotation":
4079
+ return ft(n.raw ?? n.extra.raw);
4080
+ case "BigIntLiteralTypeAnnotation":
4081
+ return gn(n.raw ?? n.extra.raw);
4082
+ case "TypeCastExpression":
4083
+ return ["(", r("expression"), H(e, r), ")"];
4084
+ case "TypePredicate":
4085
+ return cn(e, r);
4086
+ case "TypeOperator":
4087
+ return [n.operator, " ", r("typeAnnotation")];
4088
+ case "TypeParameterDeclaration":
4089
+ case "TypeParameterInstantiation":
4090
+ return wt(e, t, r, "params");
4091
+ case "InferredPredicate":
4092
+ case "DeclaredPredicate":
4093
+ return [e.key === "predicate" && e.parent.type !== "DeclareFunction" && !e.parent.returnType ? ": " : " ", "%checks", ...n.type === "DeclaredPredicate" ? ["(", r("value"), ")"] : []];
4094
+ case "AsExpression":
4095
+ case "AsConstExpression":
4096
+ case "SatisfiesExpression":
4097
+ return Bn(e, t, r);
4098
+ }
4099
+ }
4100
+ function _a(e, t, r) {
4101
+ var i;
4102
+ let { node: n } = e;
4103
+ if (!n.type.startsWith("TS")) return;
4104
+ if (br(n)) return n.type.slice(2, -7).toLowerCase();
4105
+ let s = t.semi ? ";" : "", u = [];
4106
+ switch (n.type) {
4107
+ case "TSThisType":
4108
+ return "this";
4109
+ case "TSTypeAssertion": {
4110
+ let a = !(Y(n.expression) || se(n.expression)), o = l(["<", f([E, r("typeAnnotation")]), E, ">"]), p = [B("("), f([E, r("expression")]), E, B(")")];
4111
+ return a ? Ze([[o, r("expression")], [o, l(p, { shouldBreak: true })], [o, r("expression")]]) : l([o, r("expression")]);
4112
+ }
4113
+ case "TSDeclareFunction":
4114
+ return fn(e, r, t);
4115
+ case "TSExportAssignment":
4116
+ return ["export = ", r("expression"), s];
4117
+ case "TSModuleBlock":
4118
+ return Cn(e, t, r);
4119
+ case "TSInterfaceBody":
4120
+ case "TSTypeLiteral":
4121
+ return ht(e, t, r);
4122
+ case "TSTypeAliasDeclaration":
4123
+ return zr(e, t, r);
4124
+ case "TSQualifiedName":
4125
+ return [r("left"), ".", r("right")];
4126
+ case "TSAbstractMethodDefinition":
4127
+ case "TSDeclareMethod":
4128
+ return xn(e, t, r);
4129
+ case "TSAbstractAccessorProperty":
4130
+ case "TSAbstractPropertyDefinition":
4131
+ return hn(e, t, r);
4132
+ case "TSInterfaceHeritage":
4133
+ case "TSClassImplements":
4134
+ case "TSExpressionWithTypeArguments":
4135
+ case "TSInstantiationExpression":
4136
+ return [r("expression"), r(n.typeArguments ? "typeArguments" : "typeParameters")];
4137
+ case "TSTemplateLiteralType":
4138
+ return Gr(e, r, t);
4139
+ case "TSNamedTupleMember":
4140
+ return un(e, t, r);
4141
+ case "TSRestType":
4142
+ return sn(e, t, r);
4143
+ case "TSOptionalType":
4144
+ return [r("typeAnnotation"), "?"];
4145
+ case "TSInterfaceDeclaration":
4146
+ return kn(e, t, r);
4147
+ case "TSTypeParameterDeclaration":
4148
+ case "TSTypeParameterInstantiation":
4149
+ return wt(e, t, r, "params");
4150
+ case "TSTypeParameter":
4151
+ return Tn(e, t, r);
4152
+ case "TSAsExpression":
4153
+ case "TSSatisfiesExpression":
4154
+ return Bn(e, t, r);
4155
+ case "TSArrayType":
4156
+ return on(r);
4157
+ case "TSPropertySignature":
4158
+ return [n.readonly ? "readonly " : "", Et(e, t, r), $(e), H(e, r)];
4159
+ case "TSParameterProperty":
4160
+ return [Ht(n), n.static ? "static " : "", n.override ? "override " : "", n.readonly ? "readonly " : "", r("parameter")];
4161
+ case "TSTypeQuery":
4162
+ return pn(e, r);
4163
+ case "TSIndexSignature": {
4164
+ let a = n.parameters.length > 1 ? B(oe(t) ? "," : "") : "", o = l([f([E, b([", ", E], e.map(r, "parameters"))]), a, E]), p = e.parent.type === "ClassBody" && e.key === "body";
4165
+ return [p && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? o : "", "]", H(e, r), p ? s : ""];
4166
+ }
4167
+ case "TSTypePredicate":
4168
+ return cn(e, r);
4169
+ case "TSNonNullExpression":
4170
+ return [r("expression"), "!"];
4171
+ case "TSImportType":
4172
+ return ["import(", r("argument"), ")", n.qualifier ? [".", r("qualifier")] : "", wt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4173
+ case "TSLiteralType":
4174
+ return r("literal");
4175
+ case "TSIndexedAccessType":
4176
+ return rn(e, t, r);
4177
+ case "TSTypeOperator":
4178
+ return [n.operator, " ", r("typeAnnotation")];
4179
+ case "TSMappedType":
4180
+ return ea(e, t, r);
4181
+ case "TSMethodSignature": {
4182
+ let a = n.kind && n.kind !== "method" ? `${n.kind} ` : "";
4183
+ u.push(Ht(n), a, n.computed ? "[" : "", r("key"), n.computed ? "]" : "", $(e));
4184
+ let o = Ge(e, r, t, false, true), p = n.returnType ? "returnType" : "typeAnnotation", y = n[p], D = y ? H(e, r, p) : "", m = at(n, D);
4185
+ return u.push(m ? l(o) : o), y && u.push(l(D)), l(u);
4186
+ }
4187
+ case "TSNamespaceExportDeclaration":
4188
+ return ["export as namespace ", r("id"), t.semi ? ";" : ""];
4189
+ case "TSEnumDeclaration":
4190
+ return Pn(e, r, t);
4191
+ case "TSEnumMember":
4192
+ return bn(e, r);
4193
+ case "TSImportEqualsDeclaration":
4194
+ return [n.isExport ? "export " : "", "import ", Ls(n, false), r("id"), " = ", r("moduleReference"), t.semi ? ";" : ""];
4195
+ case "TSExternalModuleReference":
4196
+ return ["require(", r("expression"), ")"];
4197
+ case "TSModuleDeclaration": {
4198
+ let { parent: a } = e, o = a.type === "TSModuleDeclaration", p = ((i = n.body) == null ? void 0 : i.type) === "TSModuleDeclaration";
4199
+ return o ? u.push(".") : (u.push(K(e)), n.kind !== "global" && u.push(n.kind, " ")), u.push(r("id")), p ? u.push(r("body")) : n.body ? u.push(" ", l(r("body"))) : u.push(s), u;
4200
+ }
4201
+ case "TSConditionalType":
4202
+ return Kt(e, t, r);
4203
+ case "TSInferType":
4204
+ return nn(e, t, r);
4205
+ case "TSIntersectionType":
4206
+ return Zr(e, t, r);
4207
+ case "TSUnionType":
4208
+ return en(e, t, r);
4209
+ case "TSFunctionType":
4210
+ case "TSCallSignatureDeclaration":
4211
+ case "TSConstructorType":
4212
+ case "TSConstructSignatureDeclaration":
4213
+ return tn(e, t, r);
4214
+ case "TSTupleType":
4215
+ return Vt(e, t, r);
4216
+ case "TSTypeReference":
4217
+ return [r("typeName"), wt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4218
+ case "TSTypeAnnotation":
4219
+ return an(e, t, r);
4220
+ case "TSEmptyBodyFunctionExpression":
4221
+ return En(e, t, r);
4222
+ case "TSJSDocAllType":
4223
+ return "*";
4224
+ case "TSJSDocUnknownType":
4225
+ return "?";
4226
+ case "TSJSDocNullableType":
4227
+ return xs(e, r, "?");
4228
+ case "TSJSDocNonNullableType":
4229
+ return xs(e, r, "!");
4230
+ case "TSParenthesizedType":
4231
+ default:
4232
+ throw new qe(n, "TypeScript");
4233
+ }
4234
+ }
4235
+ function em(e, t, r, n) {
4236
+ if (Hr(e)) return yi(e, t);
4237
+ for (let s of [hi, Ai, Oa, _a, ha]) {
4238
+ let u = s(e, t, r, n);
4239
+ if (u !== void 0) return u;
4240
+ }
4241
+ }
4242
+ var tm = R(["ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "ClassPrivateProperty", "MethodDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod"]);
4243
+ function rm(e, t, r, n) {
4244
+ var D;
4245
+ e.isRoot && ((D = t.__onHtmlBindingRoot) == null || D.call(t, e.node, t));
4246
+ let s = em(e, t, r, n);
4247
+ if (!s) return "";
4248
+ let { node: u } = e;
4249
+ if (tm(u)) return s;
4250
+ let i = O(u.decorators), a = Si(e, t, r), o = u.type === "ClassExpression";
4251
+ if (i && !o) return pr(s, (m) => l([a, m]));
4252
+ let p = ke(e, t), y = oa(e, t);
4253
+ return !a && !p && !y ? s : pr(s, (m) => [y ? ";" : "", p ? "(" : "", p && o && i ? [f([x, a, m]), x] : [a, m], p ? ")" : ""]);
4254
+ }
4255
+ var va = rm;
4256
+ var nm = { avoidAstMutation: true };
4257
+ var ja = [{ linguistLanguageId: 174, name: "JSON.stringify", type: "data", color: "#292929", tmScope: "source.json", aceMode: "json", codemirrorMode: "javascript", codemirrorMimeType: "application/json", aliases: ["geojson", "jsonl", "topojson"], extensions: [".importmap"], filenames: ["package.json", "package-lock.json", "composer.json"], parsers: ["json-stringify"], vscodeLanguageIds: ["json"] }, { linguistLanguageId: 174, name: "JSON", type: "data", color: "#292929", tmScope: "source.json", aceMode: "json", codemirrorMode: "javascript", codemirrorMimeType: "application/json", aliases: ["geojson", "jsonl", "topojson"], extensions: [".json", ".4DForm", ".4DProject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".JSON-tmLanguage", ".mcmeta", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"], filenames: [".all-contributorsrc", ".arcconfig", ".auto-changelog", ".c8rc", ".htmlhintrc", ".imgbotconfig", ".nycrc", ".tern-config", ".tern-project", ".watchmanconfig", "Pipfile.lock", "composer.lock", "flake.lock", "mcmod.info", ".babelrc", ".jscsrc", ".jshintrc", ".jslintrc", ".swcrc"], parsers: ["json"], vscodeLanguageIds: ["json"] }, { linguistLanguageId: 423, name: "JSON with Comments", type: "data", color: "#292929", group: "JSON", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", aliases: ["jsonc"], extensions: [".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"], filenames: [], parsers: ["jsonc"], vscodeLanguageIds: ["jsonc"] }, { linguistLanguageId: 175, name: "JSON5", type: "data", color: "#267CB9", extensions: [".json5"], tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json5"], vscodeLanguageIds: ["json5"] }];
4258
+ var vs = {};
4259
+ Tr(vs, { getVisitorKeys: () => Ra, massageAstNode: () => qa, print: () => im });
4260
+ var sm = { JsonRoot: ["node"], ArrayExpression: ["elements"], ObjectExpression: ["properties"], ObjectProperty: ["key", "value"], UnaryExpression: ["argument"], NullLiteral: [], BooleanLiteral: [], StringLiteral: [], NumericLiteral: [], Identifier: [], TemplateLiteral: ["quasis"], TemplateElement: [] }, Ma = sm;
4261
+ var um = gr(Ma), Ra = um;
4262
+ function im(e, t, r) {
4263
+ let { node: n } = e;
4264
+ switch (n.type) {
4265
+ case "JsonRoot":
4266
+ return [r("node"), F];
4267
+ case "ArrayExpression": {
4268
+ if (n.elements.length === 0) return "[]";
4269
+ let s = e.map(() => e.node === null ? "null" : r(), "elements");
4270
+ return ["[", f([F, b([",", F], s)]), F, "]"];
4271
+ }
4272
+ case "ObjectExpression":
4273
+ return n.properties.length === 0 ? "{}" : ["{", f([F, b([",", F], e.map(r, "properties"))]), F, "}"];
4274
+ case "ObjectProperty":
4275
+ return [r("key"), ": ", r("value")];
4276
+ case "UnaryExpression":
4277
+ return [n.operator === "+" ? "" : n.operator, r("argument")];
4278
+ case "NullLiteral":
4279
+ return "null";
4280
+ case "BooleanLiteral":
4281
+ return n.value ? "true" : "false";
4282
+ case "StringLiteral":
4283
+ return JSON.stringify(n.value);
4284
+ case "NumericLiteral":
4285
+ return Ja(e) ? JSON.stringify(String(n.value)) : JSON.stringify(n.value);
4286
+ case "Identifier":
4287
+ return Ja(e) ? JSON.stringify(n.name) : n.name;
4288
+ case "TemplateLiteral":
4289
+ return r(["quasis", 0]);
4290
+ case "TemplateElement":
4291
+ return JSON.stringify(n.value.cooked);
4292
+ default:
4293
+ throw new qe(n, "JSON");
4294
+ }
4295
+ }
4296
+ function Ja(e) {
4297
+ return e.key === "key" && e.parent.type === "ObjectProperty";
4298
+ }
4299
+ var am = /* @__PURE__ */ new Set(["start", "end", "extra", "loc", "comments", "leadingComments", "trailingComments", "innerComments", "errors", "range", "tokens"]);
4300
+ function qa(e, t) {
4301
+ let { type: r } = e;
4302
+ if (r === "ObjectProperty") {
4303
+ let { key: n } = e;
4304
+ n.type === "Identifier" ? t.key = { type: "StringLiteral", value: n.name } : n.type === "NumericLiteral" && (t.key = { type: "StringLiteral", value: String(n.value) });
4305
+ return;
4306
+ }
4307
+ if (r === "UnaryExpression" && e.operator === "+") return t.argument;
4308
+ if (r === "ArrayExpression") {
4309
+ for (let [n, s] of e.elements.entries()) s === null && t.elements.splice(n, 0, { type: "NullLiteral" });
4310
+ return;
4311
+ }
4312
+ if (r === "TemplateLiteral") return { type: "StringLiteral", value: e.quasis[0].value.cooked };
4313
+ }
4314
+ qa.ignoredProperties = am;
4315
+ var Qt = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
4316
+ var gt = "JavaScript", om = { arrowParens: { category: gt, type: "choice", default: "always", description: "Include parentheses around a sole arrow function parameter.", choices: [{ value: "always", description: "Always include parens. Example: `(x) => x`" }, { value: "avoid", description: "Omit parens when possible. Example: `x => x`" }] }, bracketSameLine: Qt.bracketSameLine, objectWrap: Qt.objectWrap, bracketSpacing: Qt.bracketSpacing, jsxBracketSameLine: { category: gt, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: gt, type: "boolean", default: true, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalOperatorPosition: { category: gt, type: "choice", default: "end", description: "Where to print operators when binary expressions wrap lines.", choices: [{ value: "start", description: "Print operators at the start of new lines." }, { value: "end", description: "Print operators at the end of previous lines." }] }, experimentalTernaries: { category: gt, type: "boolean", default: false, description: "Use curious ternaries, with the question mark after the condition.", oppositeDescription: "Default behavior of ternaries; keep question marks on the same line as the consequent." }, singleQuote: Qt.singleQuote, jsxSingleQuote: { category: gt, type: "boolean", default: false, description: "Use single quotes in JSX." }, quoteProps: { category: gt, type: "choice", default: "as-needed", description: "Change when properties in objects are quoted.", choices: [{ value: "as-needed", description: "Only add quotes around object properties where required." }, { value: "consistent", description: "If at least one property in an object requires quotes, quote all properties." }, { value: "preserve", description: "Respect the input use of quotes in object properties." }] }, trailingComma: { category: gt, type: "choice", default: "all", description: "Print trailing commas wherever possible when multi-line.", choices: [{ value: "all", description: "Trailing commas wherever possible (including function arguments)." }, { value: "es5", description: "Trailing commas where valid in ES5 (objects, arrays, etc.)" }, { value: "none", description: "No trailing commas." }] }, singleAttributePerLine: Qt.singleAttributePerLine }, Wa = om;
4317
+ var pm = { estree: _s, "estree-json": vs }, cm = [...Ns, ...ja];
4318
+ var cx = js;
4319
+
4320
+ export { cx as default, cm as languages, Wa as options, pm as printers };