@spotlightjs/spotlight 4.11.4 → 4.11.6

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 (184) hide show
  1. package/dist/_virtual/ajv.js +6 -3
  2. package/dist/_virtual/ajv2.js +13 -0
  3. package/dist/_virtual/index.js +6 -3
  4. package/dist/_virtual/index10.js +3 -3
  5. package/dist/_virtual/index11.js +3 -3
  6. package/dist/_virtual/index12.js +13 -0
  7. package/dist/_virtual/index2.js +3 -3
  8. package/dist/_virtual/index3.js +3 -3
  9. package/dist/_virtual/index4.js +3 -3
  10. package/dist/_virtual/index5.js +3 -3
  11. package/dist/_virtual/index6.js +3 -3
  12. package/dist/_virtual/index7.js +3 -3
  13. package/dist/_virtual/index9.js +3 -3
  14. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +1 -1
  15. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -1
  16. package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +3 -3
  17. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js +203 -194
  18. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js.map +1 -1
  19. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js +47 -47
  20. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js.map +1 -1
  21. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js +77 -69
  22. package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js.map +1 -1
  23. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js +78 -81
  24. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js.map +1 -1
  25. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js +145 -136
  26. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  27. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js +692 -685
  28. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
  29. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js +143 -135
  30. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
  31. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js +122 -116
  32. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js.map +1 -1
  33. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js +216 -214
  34. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js.map +1 -1
  35. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js +43 -35
  36. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js.map +1 -1
  37. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js +19 -11
  38. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
  39. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js +149 -144
  40. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  41. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js +31 -25
  42. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js.map +1 -1
  43. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js +164 -160
  44. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js.map +1 -1
  45. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -17
  46. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -1
  47. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js +7 -10
  48. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
  49. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js +174 -173
  50. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
  51. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js +5 -7
  52. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
  53. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js +21 -28
  54. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  55. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js +11 -15
  56. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
  57. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js +5 -7
  58. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
  59. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js +571 -570
  60. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js.map +1 -1
  61. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js +3 -17
  62. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js.map +1 -1
  63. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +4 -236
  64. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +1 -1
  65. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js +16 -7
  66. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js.map +1 -1
  67. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js +27 -18
  68. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
  69. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js +16 -7
  70. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  71. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js.map +1 -1
  72. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +55 -48
  73. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
  74. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +104 -99
  75. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
  76. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +30 -22
  77. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
  78. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +20 -12
  79. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -1
  80. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -88
  81. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
  82. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +94 -88
  83. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
  84. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js +71 -64
  85. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
  86. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js +66 -73
  87. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -1
  88. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js +60 -54
  89. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
  90. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +41 -36
  91. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -1
  92. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js +34 -26
  93. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
  94. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -53
  95. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
  96. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +73 -67
  97. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
  98. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +20 -12
  99. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -1
  100. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +61 -55
  101. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
  102. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +46 -39
  103. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -1
  104. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +21 -13
  105. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -1
  106. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js +132 -129
  107. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
  108. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js +17 -8
  109. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -1
  110. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js +27 -20
  111. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -1
  112. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js +121 -118
  113. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  114. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -100
  115. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  116. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +15 -9
  117. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
  118. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js +30 -26
  119. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -1
  120. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js +84 -76
  121. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
  122. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js +16 -8
  123. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -1
  124. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js +24 -18
  125. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -1
  126. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js +33 -27
  127. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
  128. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js +53 -47
  129. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
  130. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js +52 -53
  131. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -1
  132. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +32 -24
  133. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -1
  134. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +37 -31
  135. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -1
  136. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +35 -27
  137. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -1
  138. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +32 -24
  139. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
  140. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +31 -23
  141. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -1
  142. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +41 -35
  143. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -1
  144. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js +80 -74
  145. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
  146. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +71 -66
  147. package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -1
  148. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +34 -27
  149. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js.map +1 -1
  150. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +250 -245
  151. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js.map +1 -1
  152. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +201 -175
  153. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js.map +1 -1
  154. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +267 -259
  155. package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js.map +1 -1
  156. package/dist/node_modules/.pnpm/{hono@4.12.18 → hono@4.12.25}/node_modules/hono/dist/helper/streaming/sse.js.map +1 -1
  157. package/dist/node_modules/.pnpm/{hono@4.12.18 → hono@4.12.25}/node_modules/hono/dist/middleware/cors/index.js +3 -6
  158. package/dist/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/middleware/cors/index.js.map +1 -0
  159. package/dist/node_modules/.pnpm/{hono@4.12.18 → hono@4.12.25}/node_modules/hono/dist/utils/html.js.map +1 -1
  160. package/dist/node_modules/.pnpm/{hono@4.12.18 → hono@4.12.25}/node_modules/hono/dist/utils/stream.js +5 -3
  161. package/dist/node_modules/.pnpm/hono@4.12.25/node_modules/hono/dist/utils/stream.js.map +1 -0
  162. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +83 -78
  163. package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js.map +1 -1
  164. package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -1
  165. package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js.map +1 -1
  166. package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js +1 -1
  167. package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js.map +1 -1
  168. package/dist/sentry-config.js +2 -2
  169. package/dist/server/cli/run.js +2 -2
  170. package/dist/server/cli.js +2 -2
  171. package/dist/server/main.js +2 -2
  172. package/dist/server/mcp/mcp.js +2 -2
  173. package/dist/server/routes/stream/streaming.js +2 -2
  174. package/dist/ui/assets/index.js +65 -74
  175. package/dist/ui/assets/index2.js +1 -1
  176. package/dist/ui/assets/instrumentation.js +18 -18
  177. package/dist/ui/assets/main.css +1 -1
  178. package/dist/ui/assets/main.js +1 -1
  179. package/dist/ui/assets/serverTimingMeta.js +23 -30
  180. package/package.json +7 -7
  181. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/middleware/cors/index.js.map +0 -1
  182. package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/stream.js.map +0 -1
  183. /package/dist/node_modules/.pnpm/{hono@4.12.18 → hono@4.12.25}/node_modules/hono/dist/helper/streaming/sse.js +0 -0
  184. /package/dist/node_modules/.pnpm/{hono@4.12.18 → hono@4.12.25}/node_modules/hono/dist/utils/html.js +0 -0
@@ -2,316 +2,324 @@
2
2
  !(function() {
3
3
  try {
4
4
  var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "129e3cd5-01cc-4900-be10-ac8f180b7aaa", e._sentryDebugIdIdentifier = "sentry-dbid-129e3cd5-01cc-4900-be10-ac8f180b7aaa");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8de95b25-6412-4afe-bf60-bc8c1bf881f8", e._sentryDebugIdIdentifier = "sentry-dbid-8de95b25-6412-4afe-bf60-bc8c1bf881f8");
6
6
  } catch (e2) {
7
7
  }
8
8
  })();
9
- const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
10
- 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);
11
- const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
12
- const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
13
- const isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
14
- function stringArrayToHexStripped(input) {
15
- let acc = "";
16
- let code = 0;
17
- let i = 0;
18
- for (i = 0; i < input.length; i++) {
19
- code = input[i].charCodeAt(0);
20
- if (code === 48) {
21
- continue;
22
- }
23
- if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
24
- return "";
9
+ var utils;
10
+ var hasRequiredUtils;
11
+ function requireUtils() {
12
+ if (hasRequiredUtils) return utils;
13
+ hasRequiredUtils = 1;
14
+ const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
15
+ 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);
16
+ const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
17
+ const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
18
+ const isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
19
+ function stringArrayToHexStripped(input) {
20
+ let acc = "";
21
+ let code = 0;
22
+ let i = 0;
23
+ for (i = 0; i < input.length; i++) {
24
+ code = input[i].charCodeAt(0);
25
+ if (code === 48) {
26
+ continue;
27
+ }
28
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
29
+ return "";
30
+ }
31
+ acc += input[i];
32
+ break;
25
33
  }
26
- acc += input[i];
27
- break;
28
- }
29
- for (i += 1; i < input.length; i++) {
30
- code = input[i].charCodeAt(0);
31
- if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
32
- return "";
34
+ for (i += 1; i < input.length; i++) {
35
+ code = input[i].charCodeAt(0);
36
+ if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
37
+ return "";
38
+ }
39
+ acc += input[i];
33
40
  }
34
- acc += input[i];
41
+ return acc;
35
42
  }
36
- return acc;
37
- }
38
- const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
39
- function consumeIsZone(buffer) {
40
- buffer.length = 0;
41
- return true;
42
- }
43
- function consumeHextets(buffer, address, output) {
44
- if (buffer.length) {
45
- const hex = stringArrayToHexStripped(buffer);
46
- if (hex !== "") {
47
- address.push(hex);
48
- } else {
49
- output.error = true;
50
- return false;
51
- }
43
+ const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
44
+ function consumeIsZone(buffer) {
52
45
  buffer.length = 0;
46
+ return true;
53
47
  }
54
- return true;
55
- }
56
- function getIPV6(input) {
57
- let tokenCount = 0;
58
- const output = { error: false, address: "", zone: "" };
59
- const address = [];
60
- const buffer = [];
61
- let endipv6Encountered = false;
62
- let endIpv6 = false;
63
- let consume = consumeHextets;
64
- for (let i = 0; i < input.length; i++) {
65
- const cursor = input[i];
66
- if (cursor === "[" || cursor === "]") {
67
- continue;
68
- }
69
- if (cursor === ":") {
70
- if (endipv6Encountered === true) {
71
- endIpv6 = true;
72
- }
73
- if (!consume(buffer, address, output)) {
74
- break;
75
- }
76
- if (++tokenCount > 7) {
48
+ function consumeHextets(buffer, address, output) {
49
+ if (buffer.length) {
50
+ const hex = stringArrayToHexStripped(buffer);
51
+ if (hex !== "") {
52
+ address.push(hex);
53
+ } else {
77
54
  output.error = true;
78
- break;
55
+ return false;
79
56
  }
80
- if (i > 0 && input[i - 1] === ":") {
81
- endipv6Encountered = true;
57
+ buffer.length = 0;
58
+ }
59
+ return true;
60
+ }
61
+ function getIPV6(input) {
62
+ let tokenCount = 0;
63
+ const output = { error: false, address: "", zone: "" };
64
+ const address = [];
65
+ const buffer = [];
66
+ let endipv6Encountered = false;
67
+ let endIpv6 = false;
68
+ let consume = consumeHextets;
69
+ for (let i = 0; i < input.length; i++) {
70
+ const cursor = input[i];
71
+ if (cursor === "[" || cursor === "]") {
72
+ continue;
82
73
  }
83
- address.push(":");
84
- continue;
85
- } else if (cursor === "%") {
86
- if (!consume(buffer, address, output)) {
87
- break;
74
+ if (cursor === ":") {
75
+ if (endipv6Encountered === true) {
76
+ endIpv6 = true;
77
+ }
78
+ if (!consume(buffer, address, output)) {
79
+ break;
80
+ }
81
+ if (++tokenCount > 7) {
82
+ output.error = true;
83
+ break;
84
+ }
85
+ if (i > 0 && input[i - 1] === ":") {
86
+ endipv6Encountered = true;
87
+ }
88
+ address.push(":");
89
+ continue;
90
+ } else if (cursor === "%") {
91
+ if (!consume(buffer, address, output)) {
92
+ break;
93
+ }
94
+ consume = consumeIsZone;
95
+ } else {
96
+ buffer.push(cursor);
97
+ continue;
98
+ }
99
+ }
100
+ if (buffer.length) {
101
+ if (consume === consumeIsZone) {
102
+ output.zone = buffer.join("");
103
+ } else if (endIpv6) {
104
+ address.push(buffer.join(""));
105
+ } else {
106
+ address.push(stringArrayToHexStripped(buffer));
88
107
  }
89
- consume = consumeIsZone;
90
- } else {
91
- buffer.push(cursor);
92
- continue;
93
108
  }
109
+ output.address = address.join("");
110
+ return output;
94
111
  }
95
- if (buffer.length) {
96
- if (consume === consumeIsZone) {
97
- output.zone = buffer.join("");
98
- } else if (endIpv6) {
99
- address.push(buffer.join(""));
112
+ function normalizeIPv6(host) {
113
+ if (findToken(host, ":") < 2) {
114
+ return { host, isIPV6: false };
115
+ }
116
+ const ipv6 = getIPV6(host);
117
+ if (!ipv6.error) {
118
+ let newHost = ipv6.address;
119
+ let escapedHost = ipv6.address;
120
+ if (ipv6.zone) {
121
+ newHost += "%" + ipv6.zone;
122
+ escapedHost += "%25" + ipv6.zone;
123
+ }
124
+ return { host: newHost, isIPV6: true, escapedHost };
100
125
  } else {
101
- address.push(stringArrayToHexStripped(buffer));
126
+ return { host, isIPV6: false };
102
127
  }
103
128
  }
104
- output.address = address.join("");
105
- return output;
106
- }
107
- function normalizeIPv6(host) {
108
- if (findToken(host, ":") < 2) {
109
- return { host, isIPV6: false };
110
- }
111
- const ipv6 = getIPV6(host);
112
- if (!ipv6.error) {
113
- let newHost = ipv6.address;
114
- let escapedHost = ipv6.address;
115
- if (ipv6.zone) {
116
- newHost += "%" + ipv6.zone;
117
- escapedHost += "%25" + ipv6.zone;
129
+ function findToken(str, token) {
130
+ let ind = 0;
131
+ for (let i = 0; i < str.length; i++) {
132
+ if (str[i] === token) ind++;
118
133
  }
119
- return { host: newHost, isIPV6: true, escapedHost };
120
- } else {
121
- return { host, isIPV6: false };
122
- }
123
- }
124
- function findToken(str, token) {
125
- let ind = 0;
126
- for (let i = 0; i < str.length; i++) {
127
- if (str[i] === token) ind++;
134
+ return ind;
128
135
  }
129
- return ind;
130
- }
131
- function removeDotSegments(path) {
132
- let input = path;
133
- const output = [];
134
- let nextSlash = -1;
135
- let len = 0;
136
- while (len = input.length) {
137
- if (len === 1) {
138
- if (input === ".") {
139
- break;
140
- } else if (input === "/") {
141
- output.push("/");
142
- break;
143
- } else {
144
- output.push(input);
145
- break;
136
+ function removeDotSegments(path) {
137
+ let input = path;
138
+ const output = [];
139
+ let nextSlash = -1;
140
+ let len = 0;
141
+ while (len = input.length) {
142
+ if (len === 1) {
143
+ if (input === ".") {
144
+ break;
145
+ } else if (input === "/") {
146
+ output.push("/");
147
+ break;
148
+ } else {
149
+ output.push(input);
150
+ break;
151
+ }
152
+ } else if (len === 2) {
153
+ if (input[0] === ".") {
154
+ if (input[1] === ".") {
155
+ break;
156
+ } else if (input[1] === "/") {
157
+ input = input.slice(2);
158
+ continue;
159
+ }
160
+ } else if (input[0] === "/") {
161
+ if (input[1] === "." || input[1] === "/") {
162
+ output.push("/");
163
+ break;
164
+ }
165
+ }
166
+ } else if (len === 3) {
167
+ if (input === "/..") {
168
+ if (output.length !== 0) {
169
+ output.pop();
170
+ }
171
+ output.push("/");
172
+ break;
173
+ }
146
174
  }
147
- } else if (len === 2) {
148
175
  if (input[0] === ".") {
149
176
  if (input[1] === ".") {
150
- break;
177
+ if (input[2] === "/") {
178
+ input = input.slice(3);
179
+ continue;
180
+ }
151
181
  } else if (input[1] === "/") {
152
182
  input = input.slice(2);
153
183
  continue;
154
184
  }
155
185
  } else if (input[0] === "/") {
156
- if (input[1] === "." || input[1] === "/") {
157
- output.push("/");
158
- break;
186
+ if (input[1] === ".") {
187
+ if (input[2] === "/") {
188
+ input = input.slice(2);
189
+ continue;
190
+ } else if (input[2] === ".") {
191
+ if (input[3] === "/") {
192
+ input = input.slice(3);
193
+ if (output.length !== 0) {
194
+ output.pop();
195
+ }
196
+ continue;
197
+ }
198
+ }
159
199
  }
160
200
  }
161
- } else if (len === 3) {
162
- if (input === "/..") {
163
- if (output.length !== 0) {
164
- output.pop();
165
- }
166
- output.push("/");
201
+ if ((nextSlash = input.indexOf("/", 1)) === -1) {
202
+ output.push(input);
167
203
  break;
204
+ } else {
205
+ output.push(input.slice(0, nextSlash));
206
+ input = input.slice(nextSlash);
168
207
  }
169
208
  }
170
- if (input[0] === ".") {
171
- if (input[1] === ".") {
172
- if (input[2] === "/") {
173
- input = input.slice(3);
174
- continue;
175
- }
176
- } else if (input[1] === "/") {
177
- input = input.slice(2);
178
- continue;
179
- }
180
- } else if (input[0] === "/") {
181
- if (input[1] === ".") {
182
- if (input[2] === "/") {
183
- input = input.slice(2);
184
- continue;
185
- } else if (input[2] === ".") {
186
- if (input[3] === "/") {
187
- input = input.slice(3);
188
- if (output.length !== 0) {
189
- output.pop();
190
- }
191
- continue;
209
+ return output.join("");
210
+ }
211
+ const HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
212
+ const HOST_DELIM_RE = /[@/?#:]/g;
213
+ const HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
214
+ function reescapeHostDelimiters(host, isIP) {
215
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
216
+ re.lastIndex = 0;
217
+ return host.replace(re, (ch) => HOST_DELIMS[ch]);
218
+ }
219
+ function normalizePercentEncoding(input, decodeUnreserved = false) {
220
+ if (input.indexOf("%") === -1) {
221
+ return input;
222
+ }
223
+ let output = "";
224
+ for (let i = 0; i < input.length; i++) {
225
+ if (input[i] === "%" && i + 2 < input.length) {
226
+ const hex = input.slice(i + 1, i + 3);
227
+ if (isHexPair(hex)) {
228
+ const normalizedHex = hex.toUpperCase();
229
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
230
+ if (decodeUnreserved && isUnreserved(decoded)) {
231
+ output += decoded;
232
+ } else {
233
+ output += "%" + normalizedHex;
192
234
  }
235
+ i += 2;
236
+ continue;
193
237
  }
194
238
  }
239
+ output += input[i];
195
240
  }
196
- if ((nextSlash = input.indexOf("/", 1)) === -1) {
197
- output.push(input);
198
- break;
199
- } else {
200
- output.push(input.slice(0, nextSlash));
201
- input = input.slice(nextSlash);
202
- }
203
- }
204
- return output.join("");
205
- }
206
- const HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
207
- const HOST_DELIM_RE = /[@/?#:]/g;
208
- const HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
209
- function reescapeHostDelimiters(host, isIP) {
210
- const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
211
- re.lastIndex = 0;
212
- return host.replace(re, (ch) => HOST_DELIMS[ch]);
213
- }
214
- function normalizePercentEncoding(input, decodeUnreserved = false) {
215
- if (input.indexOf("%") === -1) {
216
- return input;
241
+ return output;
217
242
  }
218
- let output = "";
219
- for (let i = 0; i < input.length; i++) {
220
- if (input[i] === "%" && i + 2 < input.length) {
221
- const hex = input.slice(i + 1, i + 3);
222
- if (isHexPair(hex)) {
223
- const normalizedHex = hex.toUpperCase();
224
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
225
- if (decodeUnreserved && isUnreserved(decoded)) {
226
- output += decoded;
227
- } else {
228
- output += "%" + normalizedHex;
243
+ function normalizePathEncoding(input) {
244
+ let output = "";
245
+ for (let i = 0; i < input.length; i++) {
246
+ if (input[i] === "%" && i + 2 < input.length) {
247
+ const hex = input.slice(i + 1, i + 3);
248
+ if (isHexPair(hex)) {
249
+ const normalizedHex = hex.toUpperCase();
250
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
251
+ if (decoded !== "." && isUnreserved(decoded)) {
252
+ output += decoded;
253
+ } else {
254
+ output += "%" + normalizedHex;
255
+ }
256
+ i += 2;
257
+ continue;
229
258
  }
230
- i += 2;
231
- continue;
259
+ }
260
+ if (isPathCharacter(input[i])) {
261
+ output += input[i];
262
+ } else {
263
+ output += escape(input[i]);
232
264
  }
233
265
  }
234
- output += input[i];
266
+ return output;
235
267
  }
236
- return output;
237
- }
238
- function normalizePathEncoding(input) {
239
- let output = "";
240
- for (let i = 0; i < input.length; i++) {
241
- if (input[i] === "%" && i + 2 < input.length) {
242
- const hex = input.slice(i + 1, i + 3);
243
- if (isHexPair(hex)) {
244
- const normalizedHex = hex.toUpperCase();
245
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
246
- if (decoded !== "." && isUnreserved(decoded)) {
247
- output += decoded;
248
- } else {
249
- output += "%" + normalizedHex;
268
+ function escapePreservingEscapes(input) {
269
+ let output = "";
270
+ for (let i = 0; i < input.length; i++) {
271
+ if (input[i] === "%" && i + 2 < input.length) {
272
+ const hex = input.slice(i + 1, i + 3);
273
+ if (isHexPair(hex)) {
274
+ output += "%" + hex.toUpperCase();
275
+ i += 2;
276
+ continue;
250
277
  }
251
- i += 2;
252
- continue;
253
278
  }
254
- }
255
- if (isPathCharacter(input[i])) {
256
- output += input[i];
257
- } else {
258
279
  output += escape(input[i]);
259
280
  }
281
+ return output;
260
282
  }
261
- return output;
262
- }
263
- function escapePreservingEscapes(input) {
264
- let output = "";
265
- for (let i = 0; i < input.length; i++) {
266
- if (input[i] === "%" && i + 2 < input.length) {
267
- const hex = input.slice(i + 1, i + 3);
268
- if (isHexPair(hex)) {
269
- output += "%" + hex.toUpperCase();
270
- i += 2;
271
- continue;
272
- }
283
+ function recomposeAuthority(component) {
284
+ const uriTokens = [];
285
+ if (component.userinfo !== void 0) {
286
+ uriTokens.push(component.userinfo);
287
+ uriTokens.push("@");
273
288
  }
274
- output += escape(input[i]);
275
- }
276
- return output;
277
- }
278
- function recomposeAuthority(component) {
279
- const uriTokens = [];
280
- if (component.userinfo !== void 0) {
281
- uriTokens.push(component.userinfo);
282
- uriTokens.push("@");
283
- }
284
- if (component.host !== void 0) {
285
- let host = unescape(component.host);
286
- if (!isIPv4(host)) {
287
- const ipV6res = normalizeIPv6(host);
288
- if (ipV6res.isIPV6 === true) {
289
- host = `[${ipV6res.escapedHost}]`;
290
- } else {
291
- host = reescapeHostDelimiters(host, false);
289
+ if (component.host !== void 0) {
290
+ let host = unescape(component.host);
291
+ if (!isIPv4(host)) {
292
+ const ipV6res = normalizeIPv6(host);
293
+ if (ipV6res.isIPV6 === true) {
294
+ host = `[${ipV6res.escapedHost}]`;
295
+ } else {
296
+ host = reescapeHostDelimiters(host, false);
297
+ }
292
298
  }
299
+ uriTokens.push(host);
293
300
  }
294
- uriTokens.push(host);
295
- }
296
- if (typeof component.port === "number" || typeof component.port === "string") {
297
- uriTokens.push(":");
298
- uriTokens.push(String(component.port));
301
+ if (typeof component.port === "number" || typeof component.port === "string") {
302
+ uriTokens.push(":");
303
+ uriTokens.push(String(component.port));
304
+ }
305
+ return uriTokens.length ? uriTokens.join("") : void 0;
299
306
  }
300
- return uriTokens.length ? uriTokens.join("") : void 0;
307
+ utils = {
308
+ nonSimpleDomain,
309
+ recomposeAuthority,
310
+ reescapeHostDelimiters,
311
+ normalizePercentEncoding,
312
+ normalizePathEncoding,
313
+ escapePreservingEscapes,
314
+ removeDotSegments,
315
+ isIPv4,
316
+ isUUID,
317
+ normalizeIPv6,
318
+ stringArrayToHexStripped
319
+ };
320
+ return utils;
301
321
  }
302
- var utils = {
303
- nonSimpleDomain,
304
- recomposeAuthority,
305
- reescapeHostDelimiters,
306
- normalizePercentEncoding,
307
- normalizePathEncoding,
308
- escapePreservingEscapes,
309
- removeDotSegments,
310
- isIPv4,
311
- isUUID,
312
- normalizeIPv6
313
- };
314
322
  export {
315
- utils as u
323
+ requireUtils as __require
316
324
  };
317
325
  //# sourceMappingURL=utils.js.map