fumadocs-openapi 10.8.3 → 10.8.5

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 (171) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -1
  2. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +1 -1
  3. package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/normalize.js +2 -2
  4. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js +110 -0
  5. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +138 -0
  6. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +674 -0
  7. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +141 -0
  8. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +102 -0
  9. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +223 -0
  10. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +28 -0
  11. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +18 -0
  12. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +133 -0
  13. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +61 -0
  14. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +146 -0
  15. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -0
  16. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +48 -0
  17. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +172 -0
  18. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +31 -0
  19. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +433 -0
  20. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +113 -0
  21. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +72 -0
  22. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +583 -0
  23. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +18 -0
  24. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +42 -0
  25. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.js +50 -0
  26. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.js +20 -0
  27. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.js +51 -0
  28. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.js +16 -0
  29. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.js +36 -0
  30. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.js +19 -0
  31. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.js +85 -0
  32. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.js +59 -0
  33. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +12 -0
  34. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +25 -0
  35. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +12 -0
  36. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +16 -0
  37. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +57 -0
  38. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +96 -0
  39. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +29 -0
  40. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +16 -0
  41. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +89 -0
  42. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +87 -0
  43. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +16 -0
  44. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +62 -0
  45. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +60 -0
  46. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +59 -0
  47. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +34 -0
  48. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +31 -0
  49. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +51 -0
  50. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +61 -0
  51. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +17 -0
  52. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +52 -0
  53. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +41 -0
  54. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +17 -0
  55. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +130 -0
  56. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +14 -0
  57. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +22 -0
  58. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +112 -0
  59. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +101 -0
  60. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +14 -0
  61. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js +35 -0
  62. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +46 -0
  63. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +45 -0
  64. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js +22 -0
  65. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +20 -0
  66. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +15 -0
  67. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  68. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +10 -0
  69. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +23 -0
  70. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js +19 -0
  71. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js +13 -0
  72. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +46 -0
  73. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +59 -0
  74. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +27 -0
  75. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +17 -0
  76. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +49 -0
  77. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +48 -0
  78. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js +18 -0
  79. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +28 -0
  80. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +33 -0
  81. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +47 -0
  82. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +28 -0
  83. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +27 -0
  84. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +38 -0
  85. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +72 -0
  86. package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +70 -0
  87. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +33 -0
  88. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +236 -0
  89. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +187 -0
  90. package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +282 -0
  91. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +78 -0
  92. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/array-helper.js +11 -0
  93. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js +256 -0
  94. package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/options-helper.js +31 -0
  95. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-collection.js +1 -1
  96. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-doc.js +1 -1
  97. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-node.js +1 -1
  98. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/compose-scalar.js +1 -1
  99. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/composer.js +3 -3
  100. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.js +1 -1
  101. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +1 -1
  102. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +1 -1
  103. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-end.js +1 -1
  104. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +1 -1
  105. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +1 -1
  106. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/resolve-props.js +1 -1
  107. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.js +1 -1
  108. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +1 -1
  109. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +1 -1
  110. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/compose/util-map-includes.js +1 -1
  111. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/Document.js +1 -1
  112. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/anchors.js +1 -1
  113. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/applyReviver.js +1 -1
  114. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/createNode.js +1 -1
  115. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/doc/directives.js +1 -1
  116. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/errors.js +1 -1
  117. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/log.js +1 -1
  118. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Alias.js +1 -1
  119. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Collection.js +1 -1
  120. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Node.js +1 -1
  121. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Pair.js +1 -1
  122. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/Scalar.js +1 -1
  123. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.js +1 -1
  124. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +1 -1
  125. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +1 -1
  126. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/identity.js +1 -1
  127. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/nodes/toJS.js +1 -1
  128. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-visit.js +1 -1
  129. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/lexer.js +27 -15
  130. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/line-counter.js +1 -1
  131. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/parser.js +9 -5
  132. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/public-api.js +1 -1
  133. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/Schema.js +1 -1
  134. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/map.js +1 -1
  135. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/null.js +1 -1
  136. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/seq.js +1 -1
  137. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/common/string.js +1 -1
  138. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/bool.js +1 -1
  139. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/float.js +1 -1
  140. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/int.js +1 -1
  141. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/core/schema.js +1 -1
  142. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/json/schema.js +1 -1
  143. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/tags.js +1 -1
  144. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +1 -1
  145. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +1 -1
  146. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +1 -1
  147. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +1 -1
  148. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +1 -1
  149. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +1 -1
  150. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +1 -1
  151. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +1 -1
  152. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +1 -1
  153. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +1 -1
  154. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +1 -1
  155. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringify.js +1 -1
  156. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +1 -1
  157. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.js +1 -1
  158. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +1 -1
  159. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +1 -1
  160. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.js +1 -1
  161. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/stringify/stringifyString.js +1 -1
  162. package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/visit.js +1 -1
  163. package/dist/playground/schema.d.ts +0 -2
  164. package/dist/playground/schema.js +3 -2
  165. package/dist/requests/media/adapter.js +4 -2
  166. package/dist/requests/string-utils.js +4 -2
  167. package/package.json +11 -6
  168. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/index.js +0 -0
  169. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -0
  170. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/dist/parse/cst.js +0 -0
  171. /package/dist/node_modules/.pnpm/{yaml@2.8.4 → yaml@2.9.0}/node_modules/yaml/browser/index.js +0 -0
@@ -0,0 +1,282 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
3
+ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ /** @type {(value: string) => boolean} */
5
+ const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
6
+ /** @type {(value: string) => boolean} */
7
+ const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
8
+ /**
9
+ * @param {Array<string>} input
10
+ * @returns {string}
11
+ */
12
+ function stringArrayToHexStripped(input) {
13
+ let acc = "";
14
+ let code = 0;
15
+ let i = 0;
16
+ for (i = 0; i < input.length; i++) {
17
+ code = input[i].charCodeAt(0);
18
+ if (code === 48) continue;
19
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) return "";
20
+ acc += input[i];
21
+ break;
22
+ }
23
+ for (i += 1; i < input.length; i++) {
24
+ code = input[i].charCodeAt(0);
25
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) return "";
26
+ acc += input[i];
27
+ }
28
+ return acc;
29
+ }
30
+ /**
31
+ * @typedef {Object} GetIPV6Result
32
+ * @property {boolean} error - Indicates if there was an error parsing the IPv6 address.
33
+ * @property {string} address - The parsed IPv6 address.
34
+ * @property {string} [zone] - The zone identifier, if present.
35
+ */
36
+ /**
37
+ * @param {string} value
38
+ * @returns {boolean}
39
+ */
40
+ const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
41
+ /**
42
+ * @param {Array<string>} buffer
43
+ * @returns {boolean}
44
+ */
45
+ function consumeIsZone(buffer) {
46
+ buffer.length = 0;
47
+ return true;
48
+ }
49
+ /**
50
+ * @param {Array<string>} buffer
51
+ * @param {Array<string>} address
52
+ * @param {GetIPV6Result} output
53
+ * @returns {boolean}
54
+ */
55
+ function consumeHextets(buffer, address, output) {
56
+ if (buffer.length) {
57
+ const hex = stringArrayToHexStripped(buffer);
58
+ if (hex !== "") address.push(hex);
59
+ else {
60
+ output.error = true;
61
+ return false;
62
+ }
63
+ buffer.length = 0;
64
+ }
65
+ return true;
66
+ }
67
+ /**
68
+ * @param {string} input
69
+ * @returns {GetIPV6Result}
70
+ */
71
+ function getIPV6(input) {
72
+ let tokenCount = 0;
73
+ const output = {
74
+ error: false,
75
+ address: "",
76
+ zone: ""
77
+ };
78
+ /** @type {Array<string>} */
79
+ const address = [];
80
+ /** @type {Array<string>} */
81
+ const buffer = [];
82
+ let endipv6Encountered = false;
83
+ let endIpv6 = false;
84
+ let consume = consumeHextets;
85
+ for (let i = 0; i < input.length; i++) {
86
+ const cursor = input[i];
87
+ if (cursor === "[" || cursor === "]") continue;
88
+ if (cursor === ":") {
89
+ if (endipv6Encountered === true) endIpv6 = true;
90
+ if (!consume(buffer, address, output)) break;
91
+ if (++tokenCount > 7) {
92
+ output.error = true;
93
+ break;
94
+ }
95
+ if (i > 0 && input[i - 1] === ":") endipv6Encountered = true;
96
+ address.push(":");
97
+ continue;
98
+ } else if (cursor === "%") {
99
+ if (!consume(buffer, address, output)) break;
100
+ consume = consumeIsZone;
101
+ } else {
102
+ buffer.push(cursor);
103
+ continue;
104
+ }
105
+ }
106
+ if (buffer.length) if (consume === consumeIsZone) output.zone = buffer.join("");
107
+ else if (endIpv6) address.push(buffer.join(""));
108
+ else address.push(stringArrayToHexStripped(buffer));
109
+ output.address = address.join("");
110
+ return output;
111
+ }
112
+ /**
113
+ * @typedef {Object} NormalizeIPv6Result
114
+ * @property {string} host - The normalized host.
115
+ * @property {string} [escapedHost] - The escaped host.
116
+ * @property {boolean} isIPV6 - Indicates if the host is an IPv6 address.
117
+ */
118
+ /**
119
+ * @param {string} host
120
+ * @returns {NormalizeIPv6Result}
121
+ */
122
+ function normalizeIPv6(host) {
123
+ if (findToken(host, ":") < 2) return {
124
+ host,
125
+ isIPV6: false
126
+ };
127
+ const ipv6 = getIPV6(host);
128
+ if (!ipv6.error) {
129
+ let newHost = ipv6.address;
130
+ let escapedHost = ipv6.address;
131
+ if (ipv6.zone) {
132
+ newHost += "%" + ipv6.zone;
133
+ escapedHost += "%25" + ipv6.zone;
134
+ }
135
+ return {
136
+ host: newHost,
137
+ isIPV6: true,
138
+ escapedHost
139
+ };
140
+ } else return {
141
+ host,
142
+ isIPV6: false
143
+ };
144
+ }
145
+ /**
146
+ * @param {string} str
147
+ * @param {string} token
148
+ * @returns {number}
149
+ */
150
+ function findToken(str, token) {
151
+ let ind = 0;
152
+ for (let i = 0; i < str.length; i++) if (str[i] === token) ind++;
153
+ return ind;
154
+ }
155
+ /**
156
+ * @param {string} path
157
+ * @returns {string}
158
+ *
159
+ * @see https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4
160
+ */
161
+ function removeDotSegments(path) {
162
+ let input = path;
163
+ const output = [];
164
+ let nextSlash = -1;
165
+ let len = 0;
166
+ while (len = input.length) {
167
+ if (len === 1) if (input === ".") break;
168
+ else if (input === "/") {
169
+ output.push("/");
170
+ break;
171
+ } else {
172
+ output.push(input);
173
+ break;
174
+ }
175
+ else if (len === 2) {
176
+ if (input[0] === ".") {
177
+ if (input[1] === ".") break;
178
+ else if (input[1] === "/") {
179
+ input = input.slice(2);
180
+ continue;
181
+ }
182
+ } else if (input[0] === "/") {
183
+ if (input[1] === "." || input[1] === "/") {
184
+ output.push("/");
185
+ break;
186
+ }
187
+ }
188
+ } else if (len === 3) {
189
+ if (input === "/..") {
190
+ if (output.length !== 0) output.pop();
191
+ output.push("/");
192
+ break;
193
+ }
194
+ }
195
+ if (input[0] === ".") {
196
+ if (input[1] === ".") {
197
+ if (input[2] === "/") {
198
+ input = input.slice(3);
199
+ continue;
200
+ }
201
+ } else if (input[1] === "/") {
202
+ input = input.slice(2);
203
+ continue;
204
+ }
205
+ } else if (input[0] === "/") {
206
+ if (input[1] === ".") {
207
+ if (input[2] === "/") {
208
+ input = input.slice(2);
209
+ continue;
210
+ } else if (input[2] === ".") {
211
+ if (input[3] === "/") {
212
+ input = input.slice(3);
213
+ if (output.length !== 0) output.pop();
214
+ continue;
215
+ }
216
+ }
217
+ }
218
+ }
219
+ if ((nextSlash = input.indexOf("/", 1)) === -1) {
220
+ output.push(input);
221
+ break;
222
+ } else {
223
+ output.push(input.slice(0, nextSlash));
224
+ input = input.slice(nextSlash);
225
+ }
226
+ }
227
+ return output.join("");
228
+ }
229
+ /**
230
+ * @param {import('../types/index').URIComponent} component
231
+ * @param {boolean} esc
232
+ * @returns {import('../types/index').URIComponent}
233
+ */
234
+ function normalizeComponentEncoding(component, esc) {
235
+ const func = esc !== true ? escape : unescape;
236
+ if (component.scheme !== void 0) component.scheme = func(component.scheme);
237
+ if (component.userinfo !== void 0) component.userinfo = func(component.userinfo);
238
+ if (component.host !== void 0) component.host = func(component.host);
239
+ if (component.path !== void 0) component.path = func(component.path);
240
+ if (component.query !== void 0) component.query = func(component.query);
241
+ if (component.fragment !== void 0) component.fragment = func(component.fragment);
242
+ return component;
243
+ }
244
+ /**
245
+ * @param {import('../types/index').URIComponent} component
246
+ * @returns {string|undefined}
247
+ */
248
+ function recomposeAuthority(component) {
249
+ const uriTokens = [];
250
+ if (component.userinfo !== void 0) {
251
+ uriTokens.push(component.userinfo);
252
+ uriTokens.push("@");
253
+ }
254
+ if (component.host !== void 0) {
255
+ let host = unescape(component.host);
256
+ if (!isIPv4(host)) {
257
+ const ipV6res = normalizeIPv6(host);
258
+ if (ipV6res.isIPV6 === true) host = `[${ipV6res.escapedHost}]`;
259
+ else host = component.host;
260
+ }
261
+ uriTokens.push(host);
262
+ }
263
+ if (typeof component.port === "number" || typeof component.port === "string") {
264
+ uriTokens.push(":");
265
+ uriTokens.push(String(component.port));
266
+ }
267
+ return uriTokens.length ? uriTokens.join("") : void 0;
268
+ }
269
+ module.exports = {
270
+ nonSimpleDomain,
271
+ recomposeAuthority,
272
+ normalizeComponentEncoding,
273
+ removeDotSegments,
274
+ isIPv4,
275
+ isUUID,
276
+ normalizeIPv6,
277
+ stringArrayToHexStripped
278
+ };
279
+ }));
280
+ //#endregion
281
+ export default require_utils();
282
+ export { require_utils };
@@ -0,0 +1,78 @@
1
+ import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
3
+ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ var traverse = module.exports = function(schema, opts, cb) {
5
+ if (typeof opts == "function") {
6
+ cb = opts;
7
+ opts = {};
8
+ }
9
+ cb = opts.cb || cb;
10
+ var pre = typeof cb == "function" ? cb : cb.pre || function() {};
11
+ var post = cb.post || function() {};
12
+ _traverse(opts, pre, post, schema, "", schema);
13
+ };
14
+ traverse.keywords = {
15
+ additionalItems: true,
16
+ items: true,
17
+ contains: true,
18
+ additionalProperties: true,
19
+ propertyNames: true,
20
+ not: true,
21
+ if: true,
22
+ then: true,
23
+ else: true
24
+ };
25
+ traverse.arrayKeywords = {
26
+ items: true,
27
+ allOf: true,
28
+ anyOf: true,
29
+ oneOf: true
30
+ };
31
+ traverse.propsKeywords = {
32
+ $defs: true,
33
+ definitions: true,
34
+ properties: true,
35
+ patternProperties: true,
36
+ dependencies: true
37
+ };
38
+ traverse.skipKeywords = {
39
+ default: true,
40
+ enum: true,
41
+ const: true,
42
+ required: true,
43
+ maximum: true,
44
+ minimum: true,
45
+ exclusiveMaximum: true,
46
+ exclusiveMinimum: true,
47
+ multipleOf: true,
48
+ maxLength: true,
49
+ minLength: true,
50
+ pattern: true,
51
+ format: true,
52
+ maxItems: true,
53
+ minItems: true,
54
+ uniqueItems: true,
55
+ maxProperties: true,
56
+ minProperties: true
57
+ };
58
+ function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
59
+ if (schema && typeof schema == "object" && !Array.isArray(schema)) {
60
+ pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
61
+ for (var key in schema) {
62
+ var sch = schema[key];
63
+ if (Array.isArray(sch)) {
64
+ if (key in traverse.arrayKeywords) for (var i = 0; i < sch.length; i++) _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
65
+ } else if (key in traverse.propsKeywords) {
66
+ if (sch && typeof sch == "object") for (var prop in sch) _traverse(opts, pre, post, sch[prop], jsonPtr + "/" + key + "/" + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
67
+ } else if (key in traverse.keywords || opts.allKeys && !(key in traverse.skipKeywords)) _traverse(opts, pre, post, sch, jsonPtr + "/" + key, rootSchema, jsonPtr, key, schema);
68
+ }
69
+ post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
70
+ }
71
+ }
72
+ function escapeJsonPtr(str) {
73
+ return str.replace(/~/g, "~0").replace(/\//g, "~1");
74
+ }
75
+ }));
76
+ //#endregion
77
+ export default require_json_schema_traverse();
78
+ export { require_json_schema_traverse };
@@ -0,0 +1,11 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/array-helper.js
3
+ var require_array_helper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ module.exports = { isArray: function(value) {
5
+ if (Array.isArray) return Array.isArray(value);
6
+ return Object.prototype.toString.call(value) === "[object Array]";
7
+ } };
8
+ }));
9
+ //#endregion
10
+ export default require_array_helper();
11
+ export { require_array_helper };
@@ -0,0 +1,256 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_array_helper } from "./array-helper.js";
3
+ import { require_options_helper } from "./options-helper.js";
4
+ //#region ../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js
5
+ var require_js2xml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
+ var helper = require_options_helper();
7
+ var isArray = require_array_helper().isArray;
8
+ var currentElement, currentElementName;
9
+ function validateOptions(userOptions) {
10
+ var options = helper.copyOptions(userOptions);
11
+ helper.ensureFlagExists("ignoreDeclaration", options);
12
+ helper.ensureFlagExists("ignoreInstruction", options);
13
+ helper.ensureFlagExists("ignoreAttributes", options);
14
+ helper.ensureFlagExists("ignoreText", options);
15
+ helper.ensureFlagExists("ignoreComment", options);
16
+ helper.ensureFlagExists("ignoreCdata", options);
17
+ helper.ensureFlagExists("ignoreDoctype", options);
18
+ helper.ensureFlagExists("compact", options);
19
+ helper.ensureFlagExists("indentText", options);
20
+ helper.ensureFlagExists("indentCdata", options);
21
+ helper.ensureFlagExists("indentAttributes", options);
22
+ helper.ensureFlagExists("indentInstruction", options);
23
+ helper.ensureFlagExists("fullTagEmptyElement", options);
24
+ helper.ensureFlagExists("noQuotesForNativeAttributes", options);
25
+ helper.ensureSpacesExists(options);
26
+ if (typeof options.spaces === "number") options.spaces = Array(options.spaces + 1).join(" ");
27
+ helper.ensureKeyExists("declaration", options);
28
+ helper.ensureKeyExists("instruction", options);
29
+ helper.ensureKeyExists("attributes", options);
30
+ helper.ensureKeyExists("text", options);
31
+ helper.ensureKeyExists("comment", options);
32
+ helper.ensureKeyExists("cdata", options);
33
+ helper.ensureKeyExists("doctype", options);
34
+ helper.ensureKeyExists("type", options);
35
+ helper.ensureKeyExists("name", options);
36
+ helper.ensureKeyExists("elements", options);
37
+ helper.checkFnExists("doctype", options);
38
+ helper.checkFnExists("instruction", options);
39
+ helper.checkFnExists("cdata", options);
40
+ helper.checkFnExists("comment", options);
41
+ helper.checkFnExists("text", options);
42
+ helper.checkFnExists("instructionName", options);
43
+ helper.checkFnExists("elementName", options);
44
+ helper.checkFnExists("attributeName", options);
45
+ helper.checkFnExists("attributeValue", options);
46
+ helper.checkFnExists("attributes", options);
47
+ helper.checkFnExists("fullTagEmptyElement", options);
48
+ return options;
49
+ }
50
+ function writeIndentation(options, depth, firstLine) {
51
+ return (!firstLine && options.spaces ? "\n" : "") + Array(depth + 1).join(options.spaces);
52
+ }
53
+ function writeAttributes(attributes, options, depth) {
54
+ if (options.ignoreAttributes) return "";
55
+ if ("attributesFn" in options) attributes = options.attributesFn(attributes, currentElementName, currentElement);
56
+ var key, attr, attrName, quote, result = [];
57
+ for (key in attributes) if (attributes.hasOwnProperty(key) && attributes[key] !== null && attributes[key] !== void 0) {
58
+ quote = options.noQuotesForNativeAttributes && typeof attributes[key] !== "string" ? "" : "\"";
59
+ attr = "" + attributes[key];
60
+ attr = attr.replace(/"/g, "&quot;");
61
+ attrName = "attributeNameFn" in options ? options.attributeNameFn(key, attr, currentElementName, currentElement) : key;
62
+ result.push(options.spaces && options.indentAttributes ? writeIndentation(options, depth + 1, false) : " ");
63
+ result.push(attrName + "=" + quote + ("attributeValueFn" in options ? options.attributeValueFn(attr, key, currentElementName, currentElement) : attr) + quote);
64
+ }
65
+ if (attributes && Object.keys(attributes).length && options.spaces && options.indentAttributes) result.push(writeIndentation(options, depth, false));
66
+ return result.join("");
67
+ }
68
+ function writeDeclaration(declaration, options, depth) {
69
+ currentElement = declaration;
70
+ currentElementName = "xml";
71
+ return options.ignoreDeclaration ? "" : "<?xml" + writeAttributes(declaration[options.attributesKey], options, depth) + "?>";
72
+ }
73
+ function writeInstruction(instruction, options, depth) {
74
+ if (options.ignoreInstruction) return "";
75
+ var key;
76
+ for (key in instruction) if (instruction.hasOwnProperty(key)) break;
77
+ var instructionName = "instructionNameFn" in options ? options.instructionNameFn(key, instruction[key], currentElementName, currentElement) : key;
78
+ if (typeof instruction[key] === "object") {
79
+ currentElement = instruction;
80
+ currentElementName = instructionName;
81
+ return "<?" + instructionName + writeAttributes(instruction[key][options.attributesKey], options, depth) + "?>";
82
+ } else {
83
+ var instructionValue = instruction[key] ? instruction[key] : "";
84
+ if ("instructionFn" in options) instructionValue = options.instructionFn(instructionValue, key, currentElementName, currentElement);
85
+ return "<?" + instructionName + (instructionValue ? " " + instructionValue : "") + "?>";
86
+ }
87
+ }
88
+ function writeComment(comment, options) {
89
+ return options.ignoreComment ? "" : "<!--" + ("commentFn" in options ? options.commentFn(comment, currentElementName, currentElement) : comment) + "-->";
90
+ }
91
+ function writeCdata(cdata, options) {
92
+ return options.ignoreCdata ? "" : "<![CDATA[" + ("cdataFn" in options ? options.cdataFn(cdata, currentElementName, currentElement) : cdata.replace("]]>", "]]]]><![CDATA[>")) + "]]>";
93
+ }
94
+ function writeDoctype(doctype, options) {
95
+ return options.ignoreDoctype ? "" : "<!DOCTYPE " + ("doctypeFn" in options ? options.doctypeFn(doctype, currentElementName, currentElement) : doctype) + ">";
96
+ }
97
+ function writeText(text, options) {
98
+ if (options.ignoreText) return "";
99
+ text = "" + text;
100
+ text = text.replace(/&amp;/g, "&");
101
+ text = text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
102
+ return "textFn" in options ? options.textFn(text, currentElementName, currentElement) : text;
103
+ }
104
+ function hasContent(element, options) {
105
+ var i;
106
+ if (element.elements && element.elements.length) for (i = 0; i < element.elements.length; ++i) switch (element.elements[i][options.typeKey]) {
107
+ case "text":
108
+ if (options.indentText) return true;
109
+ break;
110
+ case "cdata":
111
+ if (options.indentCdata) return true;
112
+ break;
113
+ case "instruction":
114
+ if (options.indentInstruction) return true;
115
+ break;
116
+ case "doctype":
117
+ case "comment":
118
+ case "element": return true;
119
+ default: return true;
120
+ }
121
+ return false;
122
+ }
123
+ function writeElement(element, options, depth) {
124
+ currentElement = element;
125
+ currentElementName = element.name;
126
+ var xml = [], elementName = "elementNameFn" in options ? options.elementNameFn(element.name, element) : element.name;
127
+ xml.push("<" + elementName);
128
+ if (element[options.attributesKey]) xml.push(writeAttributes(element[options.attributesKey], options, depth));
129
+ var withClosingTag = element[options.elementsKey] && element[options.elementsKey].length || element[options.attributesKey] && element[options.attributesKey]["xml:space"] === "preserve";
130
+ if (!withClosingTag) if ("fullTagEmptyElementFn" in options) withClosingTag = options.fullTagEmptyElementFn(element.name, element);
131
+ else withClosingTag = options.fullTagEmptyElement;
132
+ if (withClosingTag) {
133
+ xml.push(">");
134
+ if (element[options.elementsKey] && element[options.elementsKey].length) {
135
+ xml.push(writeElements(element[options.elementsKey], options, depth + 1));
136
+ currentElement = element;
137
+ currentElementName = element.name;
138
+ }
139
+ xml.push(options.spaces && hasContent(element, options) ? "\n" + Array(depth + 1).join(options.spaces) : "");
140
+ xml.push("</" + elementName + ">");
141
+ } else xml.push("/>");
142
+ return xml.join("");
143
+ }
144
+ function writeElements(elements, options, depth, firstLine) {
145
+ return elements.reduce(function(xml, element) {
146
+ var indent = writeIndentation(options, depth, firstLine && !xml);
147
+ switch (element.type) {
148
+ case "element": return xml + indent + writeElement(element, options, depth);
149
+ case "comment": return xml + indent + writeComment(element[options.commentKey], options);
150
+ case "doctype": return xml + indent + writeDoctype(element[options.doctypeKey], options);
151
+ case "cdata": return xml + (options.indentCdata ? indent : "") + writeCdata(element[options.cdataKey], options);
152
+ case "text": return xml + (options.indentText ? indent : "") + writeText(element[options.textKey], options);
153
+ case "instruction":
154
+ var instruction = {};
155
+ instruction[element[options.nameKey]] = element[options.attributesKey] ? element : element[options.instructionKey];
156
+ return xml + (options.indentInstruction ? indent : "") + writeInstruction(instruction, options, depth);
157
+ }
158
+ }, "");
159
+ }
160
+ function hasContentCompact(element, options, anyContent) {
161
+ var key;
162
+ for (key in element) if (element.hasOwnProperty(key)) switch (key) {
163
+ case options.parentKey:
164
+ case options.attributesKey: break;
165
+ case options.textKey:
166
+ if (options.indentText || anyContent) return true;
167
+ break;
168
+ case options.cdataKey:
169
+ if (options.indentCdata || anyContent) return true;
170
+ break;
171
+ case options.instructionKey:
172
+ if (options.indentInstruction || anyContent) return true;
173
+ break;
174
+ case options.doctypeKey:
175
+ case options.commentKey: return true;
176
+ default: return true;
177
+ }
178
+ return false;
179
+ }
180
+ function writeElementCompact(element, name, options, depth, indent) {
181
+ currentElement = element;
182
+ currentElementName = name;
183
+ var elementName = "elementNameFn" in options ? options.elementNameFn(name, element) : name;
184
+ if (typeof element === "undefined" || element === null || element === "") return "fullTagEmptyElementFn" in options && options.fullTagEmptyElementFn(name, element) || options.fullTagEmptyElement ? "<" + elementName + "></" + elementName + ">" : "<" + elementName + "/>";
185
+ var xml = [];
186
+ if (name) {
187
+ xml.push("<" + elementName);
188
+ if (typeof element !== "object") {
189
+ xml.push(">" + writeText(element, options) + "</" + elementName + ">");
190
+ return xml.join("");
191
+ }
192
+ if (element[options.attributesKey]) xml.push(writeAttributes(element[options.attributesKey], options, depth));
193
+ var withClosingTag = hasContentCompact(element, options, true) || element[options.attributesKey] && element[options.attributesKey]["xml:space"] === "preserve";
194
+ if (!withClosingTag) if ("fullTagEmptyElementFn" in options) withClosingTag = options.fullTagEmptyElementFn(name, element);
195
+ else withClosingTag = options.fullTagEmptyElement;
196
+ if (withClosingTag) xml.push(">");
197
+ else {
198
+ xml.push("/>");
199
+ return xml.join("");
200
+ }
201
+ }
202
+ xml.push(writeElementsCompact(element, options, depth + 1, false));
203
+ currentElement = element;
204
+ currentElementName = name;
205
+ if (name) xml.push((indent ? writeIndentation(options, depth, false) : "") + "</" + elementName + ">");
206
+ return xml.join("");
207
+ }
208
+ function writeElementsCompact(element, options, depth, firstLine) {
209
+ var i, key, nodes, xml = [];
210
+ for (key in element) if (element.hasOwnProperty(key)) {
211
+ nodes = isArray(element[key]) ? element[key] : [element[key]];
212
+ for (i = 0; i < nodes.length; ++i) {
213
+ switch (key) {
214
+ case options.declarationKey:
215
+ xml.push(writeDeclaration(nodes[i], options, depth));
216
+ break;
217
+ case options.instructionKey:
218
+ xml.push((options.indentInstruction ? writeIndentation(options, depth, firstLine) : "") + writeInstruction(nodes[i], options, depth));
219
+ break;
220
+ case options.attributesKey:
221
+ case options.parentKey: break;
222
+ case options.textKey:
223
+ xml.push((options.indentText ? writeIndentation(options, depth, firstLine) : "") + writeText(nodes[i], options));
224
+ break;
225
+ case options.cdataKey:
226
+ xml.push((options.indentCdata ? writeIndentation(options, depth, firstLine) : "") + writeCdata(nodes[i], options));
227
+ break;
228
+ case options.doctypeKey:
229
+ xml.push(writeIndentation(options, depth, firstLine) + writeDoctype(nodes[i], options));
230
+ break;
231
+ case options.commentKey:
232
+ xml.push(writeIndentation(options, depth, firstLine) + writeComment(nodes[i], options));
233
+ break;
234
+ default: xml.push(writeIndentation(options, depth, firstLine) + writeElementCompact(nodes[i], key, options, depth, hasContentCompact(nodes[i], options)));
235
+ }
236
+ firstLine = firstLine && !xml.length;
237
+ }
238
+ }
239
+ return xml.join("");
240
+ }
241
+ module.exports = function(js, options) {
242
+ options = validateOptions(options);
243
+ var xml = [];
244
+ currentElement = js;
245
+ currentElementName = "_root_";
246
+ if (options.compact) xml.push(writeElementsCompact(js, options, 0, true));
247
+ else {
248
+ if (js[options.declarationKey]) xml.push(writeDeclaration(js[options.declarationKey], options, 0));
249
+ if (js[options.elementsKey] && js[options.elementsKey].length) xml.push(writeElements(js[options.elementsKey], options, 0, !xml.length));
250
+ }
251
+ return xml.join("");
252
+ };
253
+ }));
254
+ //#endregion
255
+ export default require_js2xml();
256
+ export { require_js2xml };
@@ -0,0 +1,31 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_array_helper } from "./array-helper.js";
3
+ //#region ../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/options-helper.js
4
+ var require_options_helper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ var isArray = require_array_helper().isArray;
6
+ module.exports = {
7
+ copyOptions: function(options) {
8
+ var key, copy = {};
9
+ for (key in options) if (options.hasOwnProperty(key)) copy[key] = options[key];
10
+ return copy;
11
+ },
12
+ ensureFlagExists: function(item, options) {
13
+ if (!(item in options) || typeof options[item] !== "boolean") options[item] = false;
14
+ },
15
+ ensureSpacesExists: function(options) {
16
+ if (!("spaces" in options) || typeof options.spaces !== "number" && typeof options.spaces !== "string") options.spaces = 0;
17
+ },
18
+ ensureAlwaysArrayExists: function(options) {
19
+ if (!("alwaysArray" in options) || typeof options.alwaysArray !== "boolean" && !isArray(options.alwaysArray)) options.alwaysArray = false;
20
+ },
21
+ ensureKeyExists: function(key, options) {
22
+ if (!(key + "Key" in options) || typeof options[key + "Key"] !== "string") options[key + "Key"] = options.compact ? "_" + key : key;
23
+ },
24
+ checkFnExists: function(key, options) {
25
+ return key + "Fn" in options;
26
+ }
27
+ };
28
+ }));
29
+ //#endregion
30
+ export default require_options_helper();
31
+ export { require_options_helper };
@@ -5,7 +5,7 @@ import { YAMLSeq } from "../nodes/YAMLSeq.js";
5
5
  import { resolveBlockMap } from "./resolve-block-map.js";
6
6
  import { resolveBlockSeq } from "./resolve-block-seq.js";
7
7
  import { resolveFlowCollection } from "./resolve-flow-collection.js";
8
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/compose/compose-collection.js
8
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js
9
9
  function resolveCollection(CN, ctx, token, onError, tagName, tag) {
10
10
  const coll = token.type === "block-map" ? resolveBlockMap(CN, ctx, token, onError, tag) : token.type === "block-seq" ? resolveBlockSeq(CN, ctx, token, onError, tag) : resolveFlowCollection(CN, ctx, token, onError, tag);
11
11
  const Coll = coll.constructor;
@@ -2,7 +2,7 @@ import { Document } from "../doc/Document.js";
2
2
  import { resolveProps } from "./resolve-props.js";
3
3
  import { resolveEnd } from "./resolve-end.js";
4
4
  import { composeEmptyNode, composeNode } from "./compose-node.js";
5
- //#region ../../node_modules/.pnpm/yaml@2.8.4/node_modules/yaml/browser/dist/compose/compose-doc.js
5
+ //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js
6
6
  function composeDoc(options, directives, { offset, start, value, end }, onError) {
7
7
  const doc = new Document(void 0, Object.assign({ _directives: directives }, options));
8
8
  const ctx = {