maquinaweb-ui 2.67.0 → 2.69.0

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 (177) hide show
  1. package/dist/actions.js +3 -5
  2. package/dist/actions.js.map +1 -1
  3. package/dist/container-animation/container-animation.d.ts +2 -2
  4. package/dist/container-animation/container-animation.d.ts.map +1 -1
  5. package/dist/date-field/DateField.d.ts +2 -2
  6. package/dist/date-hour-field/DateHourField.d.ts +2 -2
  7. package/dist/input-suggest/input-suggest.d.ts +2 -2
  8. package/dist/landing-text/client-landing-text.js +2 -3
  9. package/dist/landing-text/client-landing-text.js.map +1 -1
  10. package/dist/landing-text/landing-content.d.ts.map +1 -1
  11. package/dist/landing-text/landing-content.js +4 -1
  12. package/dist/landing-text/landing-content.js.map +1 -1
  13. package/dist/landing-text/landing-text.d.ts +2 -2
  14. package/dist/landing-text/server-landing-text.d.ts +2 -2
  15. package/dist/landing-text/server-landing-text.d.ts.map +1 -1
  16. package/dist/page-header/page-header.d.ts +2 -2
  17. package/dist/remote-selector/remote-selector.d.ts +3 -3
  18. package/dist/text-field/TextField.d.ts +5 -5
  19. package/dist/toggle-field/ToggleGroup.d.ts +2 -2
  20. package/package.json +1 -1
  21. package/dist/_virtual/rolldown_runtime.js +0 -31
  22. package/dist/node_modules/next/cache.js +0 -79
  23. package/dist/node_modules/next/cache.js.map +0 -1
  24. package/dist/node_modules/next/dist/build/output/log.js +0 -119
  25. package/dist/node_modules/next/dist/build/output/log.js.map +0 -1
  26. package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -119
  27. package/dist/node_modules/next/dist/client/components/app-router-headers.js.map +0 -1
  28. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -41
  29. package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +0 -1
  30. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -41
  31. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +0 -1
  32. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -312
  33. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +0 -1
  34. package/dist/node_modules/next/dist/compiled/@opentelemetry/api/index.js +0 -1286
  35. package/dist/node_modules/next/dist/compiled/@opentelemetry/api/index.js.map +0 -1
  36. package/dist/node_modules/next/dist/lib/batcher.js +0 -63
  37. package/dist/node_modules/next/dist/lib/batcher.js.map +0 -1
  38. package/dist/node_modules/next/dist/lib/constants.js +0 -325
  39. package/dist/node_modules/next/dist/lib/constants.js.map +0 -1
  40. package/dist/node_modules/next/dist/lib/detached-promise.js +0 -30
  41. package/dist/node_modules/next/dist/lib/detached-promise.js.map +0 -1
  42. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -36
  43. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +0 -1
  44. package/dist/node_modules/next/dist/lib/picocolors.js +0 -141
  45. package/dist/node_modules/next/dist/lib/picocolors.js.map +0 -1
  46. package/dist/node_modules/next/dist/lib/scheduler.js +0 -49
  47. package/dist/node_modules/next/dist/lib/scheduler.js.map +0 -1
  48. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -67
  49. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +0 -1
  50. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -763
  51. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +0 -1
  52. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +0 -19
  53. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +0 -1
  54. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +0 -215
  55. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +0 -1
  56. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -20
  57. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +0 -1
  58. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -20
  59. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +0 -1
  60. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -20
  61. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +0 -1
  62. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -214
  63. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +0 -1
  64. package/dist/node_modules/next/dist/server/base-http/helpers.js +0 -36
  65. package/dist/node_modules/next/dist/server/base-http/helpers.js.map +0 -1
  66. package/dist/node_modules/next/dist/server/client-component-renderer-logger.js +0 -65
  67. package/dist/node_modules/next/dist/server/client-component-renderer-logger.js.map +0 -1
  68. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -85
  69. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +0 -1
  70. package/dist/node_modules/next/dist/server/lib/clone-response.js +0 -55
  71. package/dist/node_modules/next/dist/server/lib/clone-response.js.map +0 -1
  72. package/dist/node_modules/next/dist/server/lib/dedupe-fetch.js +0 -106
  73. package/dist/node_modules/next/dist/server/lib/dedupe-fetch.js.map +0 -1
  74. package/dist/node_modules/next/dist/server/lib/lru-cache.js +0 -179
  75. package/dist/node_modules/next/dist/server/lib/lru-cache.js.map +0 -1
  76. package/dist/node_modules/next/dist/server/lib/patch-fetch.js +0 -703
  77. package/dist/node_modules/next/dist/server/lib/patch-fetch.js.map +0 -1
  78. package/dist/node_modules/next/dist/server/lib/trace/constants.js +0 -186
  79. package/dist/node_modules/next/dist/server/lib/trace/constants.js.map +0 -1
  80. package/dist/node_modules/next/dist/server/lib/trace/tracer.js +0 -229
  81. package/dist/node_modules/next/dist/server/lib/trace/tracer.js.map +0 -1
  82. package/dist/node_modules/next/dist/server/pipe-readable.js +0 -112
  83. package/dist/node_modules/next/dist/server/pipe-readable.js.map +0 -1
  84. package/dist/node_modules/next/dist/server/render-result.js +0 -156
  85. package/dist/node_modules/next/dist/server/render-result.js.map +0 -1
  86. package/dist/node_modules/next/dist/server/request-meta.js +0 -54
  87. package/dist/node_modules/next/dist/server/request-meta.js.map +0 -1
  88. package/dist/node_modules/next/dist/server/response-cache/index.js +0 -255
  89. package/dist/node_modules/next/dist/server/response-cache/index.js.map +0 -1
  90. package/dist/node_modules/next/dist/server/response-cache/types.js +0 -43
  91. package/dist/node_modules/next/dist/server/response-cache/types.js.map +0 -1
  92. package/dist/node_modules/next/dist/server/response-cache/utils.js +0 -100
  93. package/dist/node_modules/next/dist/server/response-cache/utils.js.map +0 -1
  94. package/dist/node_modules/next/dist/server/route-kind.js +0 -38
  95. package/dist/node_modules/next/dist/server/route-kind.js.map +0 -1
  96. package/dist/node_modules/next/dist/server/stream-utils/encoded-tags.js +0 -115
  97. package/dist/node_modules/next/dist/server/stream-utils/encoded-tags.js.map +0 -1
  98. package/dist/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +0 -635
  99. package/dist/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js.map +0 -1
  100. package/dist/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +0 -58
  101. package/dist/node_modules/next/dist/server/stream-utils/uint8array-helpers.js.map +0 -1
  102. package/dist/node_modules/next/dist/server/use-cache/cache-life.js +0 -140
  103. package/dist/node_modules/next/dist/server/use-cache/cache-life.js.map +0 -1
  104. package/dist/node_modules/next/dist/server/use-cache/cache-tag.js +0 -52
  105. package/dist/node_modules/next/dist/server/use-cache/cache-tag.js.map +0 -1
  106. package/dist/node_modules/next/dist/server/web/error.js +0 -55
  107. package/dist/node_modules/next/dist/server/web/error.js.map +0 -1
  108. package/dist/node_modules/next/dist/server/web/next-url.js +0 -203
  109. package/dist/node_modules/next/dist/server/web/next-url.js.map +0 -1
  110. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +0 -103
  111. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js.map +0 -1
  112. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -31
  113. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +0 -1
  114. package/dist/node_modules/next/dist/server/web/spec-extension/request.js +0 -98
  115. package/dist/node_modules/next/dist/server/web/spec-extension/request.js.map +0 -1
  116. package/dist/node_modules/next/dist/server/web/spec-extension/revalidate.js +0 -162
  117. package/dist/node_modules/next/dist/server/web/spec-extension/revalidate.js.map +0 -1
  118. package/dist/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +0 -187
  119. package/dist/node_modules/next/dist/server/web/spec-extension/unstable-cache.js.map +0 -1
  120. package/dist/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +0 -49
  121. package/dist/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js.map +0 -1
  122. package/dist/node_modules/next/dist/server/web/utils.js +0 -113
  123. package/dist/node_modules/next/dist/server/web/utils.js.map +0 -1
  124. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +0 -32
  125. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +0 -1
  126. package/dist/node_modules/next/dist/shared/lib/errors/constants.js +0 -24
  127. package/dist/node_modules/next/dist/shared/lib/errors/constants.js.map +0 -1
  128. package/dist/node_modules/next/dist/shared/lib/get-hostname.js +0 -25
  129. package/dist/node_modules/next/dist/shared/lib/get-hostname.js.map +0 -1
  130. package/dist/node_modules/next/dist/shared/lib/hash.js +0 -37
  131. package/dist/node_modules/next/dist/shared/lib/hash.js.map +0 -1
  132. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -23
  133. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +0 -1
  134. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -43
  135. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +0 -1
  136. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -24
  137. package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +0 -1
  138. package/dist/node_modules/next/dist/shared/lib/is-thenable.js +0 -21
  139. package/dist/node_modules/next/dist/shared/lib/is-thenable.js.map +0 -1
  140. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -36
  141. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +0 -1
  142. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -21
  143. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +0 -1
  144. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +0 -31
  145. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +0 -1
  146. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -31
  147. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +0 -1
  148. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -25
  149. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +0 -1
  150. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -25
  151. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js.map +0 -1
  152. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -52
  153. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +0 -1
  154. package/dist/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +0 -29
  155. package/dist/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js.map +0 -1
  156. package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -33
  157. package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js.map +0 -1
  158. package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -52
  159. package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js.map +0 -1
  160. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -33
  161. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +0 -1
  162. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -93
  163. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +0 -1
  164. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -27
  165. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +0 -1
  166. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -33
  167. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +0 -1
  168. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -25
  169. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +0 -1
  170. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -26
  171. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js.map +0 -1
  172. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -21
  173. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +0 -1
  174. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -168
  175. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +0 -1
  176. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -85
  177. package/dist/node_modules/next/dist/shared/lib/segment.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"tracer.js","names":["remoteContext"],"sources":["../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n BubbledError: null,\n SpanKind: null,\n SpanStatusCode: null,\n getTracer: null,\n isBubbledError: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n BubbledError: function() {\n return BubbledError;\n },\n SpanKind: function() {\n return SpanKind;\n },\n SpanStatusCode: function() {\n return SpanStatusCode;\n },\n getTracer: function() {\n return getTracer;\n },\n isBubbledError: function() {\n return isBubbledError;\n }\n});\nconst _constants = require(\"./constants\");\nconst _isthenable = require(\"../../../shared/lib/is-thenable\");\nconst NEXT_OTEL_PERFORMANCE_PREFIX = process.env.NEXT_OTEL_PERFORMANCE_PREFIX;\nlet api;\n// we want to allow users to use their own version of @opentelemetry/api if they\n// want to, so we try to require it first, and if it fails we fall back to the\n// version that is bundled with Next.js\n// this is because @opentelemetry/api has to be synced with the version of\n// @opentelemetry/tracing that is used, and we don't want to force users to use\n// the version that is bundled with Next.js.\n// the API is ~stable, so this should be fine\nif (process.env.NEXT_RUNTIME === 'edge') {\n api = require('@opentelemetry/api');\n} else {\n try {\n api = require('@opentelemetry/api');\n } catch (err) {\n api = require('next/dist/compiled/@opentelemetry/api');\n }\n}\nconst { context, propagation, trace, SpanStatusCode, SpanKind, ROOT_CONTEXT } = api;\nclass BubbledError extends Error {\n constructor(bubble, result){\n super(), this.bubble = bubble, this.result = result;\n }\n}\nfunction isBubbledError(error) {\n if (typeof error !== 'object' || error === null) return false;\n return error instanceof BubbledError;\n}\nconst closeSpanWithError = (span, error)=>{\n if (isBubbledError(error) && error.bubble) {\n span.setAttribute('next.bubble', true);\n } else {\n if (error) {\n span.recordException(error);\n span.setAttribute('error.type', error.name);\n }\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error == null ? void 0 : error.message\n });\n }\n span.end();\n};\n/** we use this map to propagate attributes from nested spans to the top span */ const rootSpanAttributesStore = new Map();\nconst rootSpanIdKey = api.createContextKey('next.rootSpanId');\nlet lastSpanId = 0;\nconst getSpanId = ()=>lastSpanId++;\nconst clientTraceDataSetter = {\n set (carrier, key, value) {\n carrier.push({\n key,\n value\n });\n }\n};\nclass NextTracerImpl {\n /**\n * Returns an instance to the trace with configured name.\n * Since wrap / trace can be defined in any place prior to actual trace subscriber initialization,\n * This should be lazily evaluated.\n */ getTracerInstance() {\n return trace.getTracer('next.js', '0.0.1');\n }\n getContext() {\n return context;\n }\n getTracePropagationData() {\n const activeContext = context.active();\n const entries = [];\n propagation.inject(activeContext, entries, clientTraceDataSetter);\n return entries;\n }\n getActiveScopeSpan() {\n return trace.getSpan(context == null ? void 0 : context.active());\n }\n withPropagatedContext(carrier, fn, getter, force = false) {\n const activeContext = context.active();\n if (force) {\n const remoteContext = propagation.extract(ROOT_CONTEXT, carrier, getter);\n if (trace.getSpanContext(remoteContext)) {\n return context.with(remoteContext, fn);\n }\n // Preserve the current active span while still merging any extracted\n // baggage/context values from the carrier.\n const mergedContext = propagation.extract(activeContext, carrier, getter);\n return context.with(mergedContext, fn);\n }\n if (trace.getSpanContext(activeContext)) {\n // Active span is already set, too late to propagate.\n return fn();\n }\n const remoteContext = propagation.extract(activeContext, carrier, getter);\n return context.with(remoteContext, fn);\n }\n trace(...args) {\n const [type, fnOrOptions, fnOrEmpty] = args;\n // coerce options form overload\n const { fn, options } = typeof fnOrOptions === 'function' ? {\n fn: fnOrOptions,\n options: {}\n } : {\n fn: fnOrEmpty,\n options: {\n ...fnOrOptions\n }\n };\n const spanName = options.spanName ?? type;\n if (!_constants.NextVanillaSpanAllowlist.has(type) && process.env.NEXT_OTEL_VERBOSE !== '1' || options.hideSpan) {\n return fn();\n }\n // Trying to get active scoped span to assign parent. If option specifies parent span manually, will try to use it.\n let spanContext = this.getSpanContext((options == null ? void 0 : options.parentSpan) ?? this.getActiveScopeSpan());\n if (!spanContext) {\n spanContext = (context == null ? void 0 : context.active()) ?? ROOT_CONTEXT;\n }\n // Check if there's already a root span in the store for this trace\n // We are intentionally not checking whether there is an active context\n // from outside of nextjs to ensure that we can provide the same level\n // of telemetry when using a custom server\n const existingRootSpanId = spanContext.getValue(rootSpanIdKey);\n const isRootSpan = typeof existingRootSpanId !== 'number' || !rootSpanAttributesStore.has(existingRootSpanId);\n const spanId = getSpanId();\n options.attributes = {\n 'next.span_name': spanName,\n 'next.span_type': type,\n ...options.attributes\n };\n return context.with(spanContext.setValue(rootSpanIdKey, spanId), ()=>this.getTracerInstance().startActiveSpan(spanName, options, (span)=>{\n let startTime;\n if (NEXT_OTEL_PERFORMANCE_PREFIX && type && _constants.LogSpanAllowList.has(type)) {\n startTime = 'performance' in globalThis && 'measure' in performance ? globalThis.performance.now() : undefined;\n }\n let cleanedUp = false;\n const onCleanup = ()=>{\n if (cleanedUp) return;\n cleanedUp = true;\n rootSpanAttributesStore.delete(spanId);\n if (startTime) {\n performance.measure(`${NEXT_OTEL_PERFORMANCE_PREFIX}:next-${(type.split('.').pop() || '').replace(/[A-Z]/g, (match)=>'-' + match.toLowerCase())}`, {\n start: startTime,\n end: performance.now()\n });\n }\n };\n if (isRootSpan) {\n rootSpanAttributesStore.set(spanId, new Map(Object.entries(options.attributes ?? {})));\n }\n if (fn.length > 1) {\n try {\n return fn(span, (err)=>closeSpanWithError(span, err));\n } catch (err) {\n closeSpanWithError(span, err);\n throw err;\n } finally{\n onCleanup();\n }\n }\n try {\n const result = fn(span);\n if ((0, _isthenable.isThenable)(result)) {\n // If there's error make sure it throws\n return result.then((res)=>{\n span.end();\n // Need to pass down the promise result,\n // it could be react stream response with error { error, stream }\n return res;\n }).catch((err)=>{\n closeSpanWithError(span, err);\n throw err;\n }).finally(onCleanup);\n } else {\n span.end();\n onCleanup();\n }\n return result;\n } catch (err) {\n closeSpanWithError(span, err);\n onCleanup();\n throw err;\n }\n }));\n }\n wrap(...args) {\n const tracer = this;\n const [name, options, fn] = args.length === 3 ? args : [\n args[0],\n {},\n args[1]\n ];\n if (!_constants.NextVanillaSpanAllowlist.has(name) && process.env.NEXT_OTEL_VERBOSE !== '1') {\n return fn;\n }\n return function() {\n let optionsObj = options;\n if (typeof optionsObj === 'function' && typeof fn === 'function') {\n optionsObj = optionsObj.apply(this, arguments);\n }\n const lastArgId = arguments.length - 1;\n const cb = arguments[lastArgId];\n if (typeof cb === 'function') {\n const scopeBoundCb = tracer.getContext().bind(context.active(), cb);\n return tracer.trace(name, optionsObj, (_span, done)=>{\n arguments[lastArgId] = function(err) {\n done == null ? void 0 : done(err);\n return scopeBoundCb.apply(this, arguments);\n };\n return fn.apply(this, arguments);\n });\n } else {\n return tracer.trace(name, optionsObj, ()=>fn.apply(this, arguments));\n }\n };\n }\n startSpan(...args) {\n const [type, options] = args;\n const spanContext = this.getSpanContext((options == null ? void 0 : options.parentSpan) ?? this.getActiveScopeSpan());\n return this.getTracerInstance().startSpan(type, options, spanContext);\n }\n getSpanContext(parentSpan) {\n const spanContext = parentSpan ? trace.setSpan(context.active(), parentSpan) : undefined;\n return spanContext;\n }\n getRootSpanAttributes() {\n const spanId = context.active().getValue(rootSpanIdKey);\n return rootSpanAttributesStore.get(spanId);\n }\n setRootSpanAttribute(key, value) {\n const spanId = context.active().getValue(rootSpanIdKey);\n const attributes = rootSpanAttributesStore.get(spanId);\n if (attributes && !attributes.has(key)) {\n attributes.set(key, value);\n }\n }\n withSpan(span, fn) {\n const spanContext = trace.setSpan(context.active(), span);\n return context.with(spanContext, fn);\n }\n}\nconst getTracer = (()=>{\n const tracer = new NextTracerImpl();\n return ()=>tracer;\n})();\n\n//# sourceMappingURL=tracer.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;CAQF,SAAS,QAAQ,QAAQ,KAAK;AAC1B,OAAI,IAAI,QAAQ,IAAI,QAAO,eAAe,QAAQ,MAAM;GACpD,YAAY;GACZ,KAAK,IAAI;GACZ,CAAC;;AAEN,SAAQ,SAAS;EACb,cAAc,WAAW;AACrB,UAAO;;EAEX,UAAU,WAAW;AACjB,UAAO;;EAEX,gBAAgB,WAAW;AACvB,UAAO;;EAEX,WAAW,WAAW;AAClB,UAAO;;EAEX,gBAAgB,WAAW;AACvB,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,MAAM;CACN,MAAM,+BAA+B,QAAQ,IAAI;CACjD,IAAI;AAQJ,KAAI,QAAQ,IAAI,iBAAiB,OAC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B,MAAM,SAAS,IAAI,gBAAgB;AACnC,eAAW;KACX"}
@@ -1,112 +0,0 @@
1
- import { __commonJS } from "../../../../_virtual/rolldown_runtime.js";
2
- import { require_constants } from "./lib/trace/constants.js";
3
- import { require_tracer } from "./lib/trace/tracer.js";
4
- import { require_detached_promise } from "../lib/detached-promise.js";
5
- import { require_next_request } from "./web/spec-extension/adapters/next-request.js";
6
- import { require_client_component_renderer_logger } from "./client-component-renderer-logger.js";
7
-
8
- //#region node_modules/next/dist/server/pipe-readable.js
9
- var require_pipe_readable = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/server/pipe-readable.js": ((exports) => {
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- function _export(target, all) {
12
- for (var name in all) Object.defineProperty(target, name, {
13
- enumerable: true,
14
- get: all[name]
15
- });
16
- }
17
- _export(exports, {
18
- isAbortError: function() {
19
- return isAbortError;
20
- },
21
- pipeToNodeResponse: function() {
22
- return pipeToNodeResponse;
23
- }
24
- });
25
- const _nextrequest = require_next_request();
26
- const _detachedpromise = require_detached_promise();
27
- const _tracer = require_tracer();
28
- const _constants = require_constants();
29
- const _clientcomponentrendererlogger = require_client_component_renderer_logger();
30
- function isAbortError(e) {
31
- return (e == null ? void 0 : e.name) === "AbortError" || (e == null ? void 0 : e.name) === _nextrequest.ResponseAbortedName;
32
- }
33
- function createWriterFromResponse(res, waitUntilForEnd) {
34
- let started = false;
35
- let drained = new _detachedpromise.DetachedPromise();
36
- function onDrain() {
37
- drained.resolve();
38
- }
39
- res.on("drain", onDrain);
40
- res.once("close", () => {
41
- res.off("drain", onDrain);
42
- drained.resolve();
43
- });
44
- const finished = new _detachedpromise.DetachedPromise();
45
- res.once("finish", () => {
46
- finished.resolve();
47
- });
48
- return new WritableStream({
49
- write: async (chunk) => {
50
- if (!started) {
51
- started = true;
52
- if ("performance" in globalThis && process.env.NEXT_OTEL_PERFORMANCE_PREFIX) {
53
- const metrics = (0, _clientcomponentrendererlogger.getClientComponentLoaderMetrics)();
54
- if (metrics) performance.measure(`${process.env.NEXT_OTEL_PERFORMANCE_PREFIX}:next-client-component-loading`, {
55
- start: metrics.clientComponentLoadStart,
56
- end: metrics.clientComponentLoadStart + metrics.clientComponentLoadTimes
57
- });
58
- }
59
- res.flushHeaders();
60
- (0, _tracer.getTracer)().trace(_constants.NextNodeServerSpan.startResponse, { spanName: "start response" }, () => void 0);
61
- }
62
- try {
63
- const ok = res.write(chunk);
64
- if ("flush" in res && typeof res.flush === "function") res.flush();
65
- if (!ok) {
66
- await drained.promise;
67
- drained = new _detachedpromise.DetachedPromise();
68
- }
69
- } catch (err) {
70
- res.end();
71
- throw Object.defineProperty(new Error("failed to write chunk to response", { cause: err }), "__NEXT_ERROR_CODE", {
72
- value: "E321",
73
- enumerable: false,
74
- configurable: true
75
- });
76
- }
77
- },
78
- abort: (err) => {
79
- if (res.writableFinished) return;
80
- res.destroy(err);
81
- },
82
- close: async () => {
83
- if (waitUntilForEnd) await waitUntilForEnd;
84
- if (res.writableFinished) return;
85
- res.end();
86
- return finished.promise;
87
- }
88
- });
89
- }
90
- async function pipeToNodeResponse(readable, res, waitUntilForEnd) {
91
- try {
92
- const { errored, destroyed } = res;
93
- if (errored || destroyed) return;
94
- const controller = (0, _nextrequest.createAbortController)(res);
95
- const writer = createWriterFromResponse(res, waitUntilForEnd);
96
- await readable.pipeTo(writer, { signal: controller.signal });
97
- } catch (err) {
98
- if (isAbortError(err)) return;
99
- throw Object.defineProperty(new Error("failed to pipe response", { cause: err }), "__NEXT_ERROR_CODE", {
100
- value: "E180",
101
- enumerable: false,
102
- configurable: true
103
- });
104
- }
105
- }
106
- }) });
107
-
108
- //#endregion
109
- export default require_pipe_readable();
110
-
111
- export { require_pipe_readable };
112
- //# sourceMappingURL=pipe-readable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipe-readable.js","names":[],"sources":["../../../../../node_modules/next/dist/server/pipe-readable.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n isAbortError: null,\n pipeToNodeResponse: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n isAbortError: function() {\n return isAbortError;\n },\n pipeToNodeResponse: function() {\n return pipeToNodeResponse;\n }\n});\nconst _nextrequest = require(\"./web/spec-extension/adapters/next-request\");\nconst _detachedpromise = require(\"../lib/detached-promise\");\nconst _tracer = require(\"./lib/trace/tracer\");\nconst _constants = require(\"./lib/trace/constants\");\nconst _clientcomponentrendererlogger = require(\"./client-component-renderer-logger\");\nfunction isAbortError(e) {\n return (e == null ? void 0 : e.name) === 'AbortError' || (e == null ? void 0 : e.name) === _nextrequest.ResponseAbortedName;\n}\nfunction createWriterFromResponse(res, waitUntilForEnd) {\n let started = false;\n // Create a promise that will resolve once the response has drained. See\n // https://nodejs.org/api/stream.html#stream_event_drain\n let drained = new _detachedpromise.DetachedPromise();\n function onDrain() {\n drained.resolve();\n }\n res.on('drain', onDrain);\n // If the finish event fires, it means we shouldn't block and wait for the\n // drain event.\n res.once('close', ()=>{\n res.off('drain', onDrain);\n drained.resolve();\n });\n // Create a promise that will resolve once the response has finished. See\n // https://nodejs.org/api/http.html#event-finish_1\n const finished = new _detachedpromise.DetachedPromise();\n res.once('finish', ()=>{\n finished.resolve();\n });\n // Create a writable stream that will write to the response.\n return new WritableStream({\n write: async (chunk)=>{\n // You'd think we'd want to use `start` instead of placing this in `write`\n // but this ensures that we don't actually flush the headers until we've\n // started writing chunks.\n if (!started) {\n started = true;\n if ('performance' in globalThis && process.env.NEXT_OTEL_PERFORMANCE_PREFIX) {\n const metrics = (0, _clientcomponentrendererlogger.getClientComponentLoaderMetrics)();\n if (metrics) {\n performance.measure(`${process.env.NEXT_OTEL_PERFORMANCE_PREFIX}:next-client-component-loading`, {\n start: metrics.clientComponentLoadStart,\n end: metrics.clientComponentLoadStart + metrics.clientComponentLoadTimes\n });\n }\n }\n res.flushHeaders();\n (0, _tracer.getTracer)().trace(_constants.NextNodeServerSpan.startResponse, {\n spanName: 'start response'\n }, ()=>undefined);\n }\n try {\n const ok = res.write(chunk);\n // Added by the `compression` middleware, this is a function that will\n // flush the partially-compressed response to the client.\n if ('flush' in res && typeof res.flush === 'function') {\n res.flush();\n }\n // If the write returns false, it means there's some backpressure, so\n // wait until it's streamed before continuing.\n if (!ok) {\n await drained.promise;\n // Reset the drained promise so that we can wait for the next drain event.\n drained = new _detachedpromise.DetachedPromise();\n }\n } catch (err) {\n res.end();\n throw Object.defineProperty(new Error('failed to write chunk to response', {\n cause: err\n }), \"__NEXT_ERROR_CODE\", {\n value: \"E321\",\n enumerable: false,\n configurable: true\n });\n }\n },\n abort: (err)=>{\n if (res.writableFinished) return;\n res.destroy(err);\n },\n close: async ()=>{\n // if a waitUntil promise was passed, wait for it to resolve before\n // ending the response.\n if (waitUntilForEnd) {\n await waitUntilForEnd;\n }\n if (res.writableFinished) return;\n res.end();\n return finished.promise;\n }\n });\n}\nasync function pipeToNodeResponse(readable, res, waitUntilForEnd) {\n try {\n // If the response has already errored, then just return now.\n const { errored, destroyed } = res;\n if (errored || destroyed) return;\n // Create a new AbortController so that we can abort the readable if the\n // client disconnects.\n const controller = (0, _nextrequest.createAbortController)(res);\n const writer = createWriterFromResponse(res, waitUntilForEnd);\n await readable.pipeTo(writer, {\n signal: controller.signal\n });\n } catch (err) {\n // If this isn't related to an abort error, re-throw it.\n if (isAbortError(err)) return;\n throw Object.defineProperty(new Error('failed to pipe response', {\n cause: err\n }), \"__NEXT_ERROR_CODE\", {\n value: \"E180\",\n enumerable: false,\n configurable: true\n });\n }\n}\n\n//# sourceMappingURL=pipe-readable.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;CAKF,SAAS,QAAQ,QAAQ,KAAK;AAC1B,OAAI,IAAI,QAAQ,IAAI,QAAO,eAAe,QAAQ,MAA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gBAAU,IAAI,iBAAiB,iBAAiB;;aAE/C,KAAK;AACV,SAAI,KAAK;AACT,WAAM,OAAO,eAAe,IAAI,MAAM,qCAAqC,EACvE,OAAO,KACV,CAAC,EAAE,qBAAqB;MACrB,OAAO;MACP,YAAY;MACZ,cAAc;MACjB,CAAC;;;GAGV,QAAQ,QAAM;AACV,QAAI,IAAI,iBAAkB;AAC1B,QAAI,QAAQ,IAAI;;GAEpB,OAAO,YAAU;AAGb,QAAI,gBACA,OAAM;AAEV,QAAI,IAAI,iBAAkB;AAC1B,QAAI,KAAK;AACT,WAAO,SAAS;;GAEvB,CAAC;;CAEN,eAAe,mBAAmB,UAAU,KAAK,iBAAiB;AAC9D,MAAI;GAEA,MAAM,EAAE,SAAS,cAAc;AAC/B,OAAI,WAAW,UAAW;GAG1B,MAAM,cAAc,GAAG,aAAa,uBAAuB,IAAI;GAC/D,MAAM,SAAS,yBAAyB,KAAK,gBAAgB;AAC7D,SAAM,SAAS,OAAO,QAAQ,EAC1B,QAAQ,WAAW,QACtB,CAAC;WACG,KAAK;AAEV,OAAI,aAAa,IAAI,CAAE;AACvB,SAAM,OAAO,eAAe,IAAI,MAAM,2BAA2B,EAC7D,OAAO,KACV,CAAC,EAAE,qBAAqB;IACrB,OAAO;IACP,YAAY;IACZ,cAAc;IACjB,CAAC"}
@@ -1,156 +0,0 @@
1
- import { __commonJS } from "../../../../_virtual/rolldown_runtime.js";
2
- import { require_invariant_error } from "../shared/lib/invariant-error.js";
3
- import { require_node_web_streams_helper } from "./stream-utils/node-web-streams-helper.js";
4
- import { require_pipe_readable } from "./pipe-readable.js";
5
-
6
- //#region node_modules/next/dist/server/render-result.js
7
- var require_render_result = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/server/render-result.js": ((exports) => {
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- Object.defineProperty(exports, "default", {
10
- enumerable: true,
11
- get: function() {
12
- return RenderResult;
13
- }
14
- });
15
- const _nodewebstreamshelper = require_node_web_streams_helper();
16
- const _pipereadable = require_pipe_readable();
17
- const _invarianterror = require_invariant_error();
18
- var RenderResult = class RenderResult {
19
- static #_ = this.EMPTY = new RenderResult(null, {
20
- metadata: {},
21
- contentType: null
22
- });
23
- /**
24
- * Creates a new RenderResult instance from a static response.
25
- *
26
- * @param value the static response value
27
- * @param contentType the content type of the response
28
- * @returns a new RenderResult instance
29
- */ static fromStatic(value, contentType) {
30
- return new RenderResult(value, {
31
- metadata: {},
32
- contentType
33
- });
34
- }
35
- constructor(response, { contentType, waitUntil, metadata }) {
36
- this.response = response;
37
- this.contentType = contentType;
38
- this.metadata = metadata;
39
- this.waitUntil = waitUntil;
40
- }
41
- assignMetadata(metadata) {
42
- Object.assign(this.metadata, metadata);
43
- }
44
- /**
45
- * Returns true if the response is null. It can be null if the response was
46
- * not found or was already sent.
47
- */ get isNull() {
48
- return this.response === null;
49
- }
50
- /**
51
- * Returns false if the response is a string. It can be a string if the page
52
- * was prerendered. If it's not, then it was generated dynamically.
53
- */ get isDynamic() {
54
- return typeof this.response !== "string";
55
- }
56
- toUnchunkedString(stream = false) {
57
- if (this.response === null) return "";
58
- if (typeof this.response !== "string") {
59
- if (!stream) throw Object.defineProperty(new _invarianterror.InvariantError("dynamic responses cannot be unchunked. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
60
- value: "E732",
61
- enumerable: false,
62
- configurable: true
63
- });
64
- return (0, _nodewebstreamshelper.streamToString)(this.readable);
65
- }
66
- return this.response;
67
- }
68
- /**
69
- * Returns a readable stream of the response.
70
- */ get readable() {
71
- if (this.response === null) return new ReadableStream({ start(controller) {
72
- controller.close();
73
- } });
74
- if (typeof this.response === "string") return (0, _nodewebstreamshelper.streamFromString)(this.response);
75
- if (Buffer.isBuffer(this.response)) return (0, _nodewebstreamshelper.streamFromBuffer)(this.response);
76
- if (Array.isArray(this.response)) return (0, _nodewebstreamshelper.chainStreams)(...this.response);
77
- return this.response;
78
- }
79
- /**
80
- * Coerces the response to an array of streams. This will convert the response
81
- * to an array of streams if it is not already one.
82
- *
83
- * @returns An array of streams
84
- */ coerce() {
85
- if (this.response === null) return [];
86
- if (typeof this.response === "string") return [(0, _nodewebstreamshelper.streamFromString)(this.response)];
87
- else if (Array.isArray(this.response)) return this.response;
88
- else if (Buffer.isBuffer(this.response)) return [(0, _nodewebstreamshelper.streamFromBuffer)(this.response)];
89
- else return [this.response];
90
- }
91
- /**
92
- * Pipes the response through a transform stream. This converts the response
93
- * to a single readable stream (chaining if needed) and pipes it through the
94
- * provided transform.
95
- *
96
- * @param transform The transform stream to pipe through
97
- */ pipeThrough(transform) {
98
- this.response = this.readable.pipeThrough(transform);
99
- }
100
- /**
101
- * Unshifts a new stream to the response. This will convert the response to an
102
- * array of streams if it is not already one and will add the new stream to
103
- * the start of the array. When this response is piped, all of the streams
104
- * will be piped one after the other.
105
- *
106
- * @param readable The new stream to unshift
107
- */ unshift(readable) {
108
- this.response = this.coerce();
109
- this.response.unshift(readable);
110
- }
111
- /**
112
- * Chains a new stream to the response. This will convert the response to an
113
- * array of streams if it is not already one and will add the new stream to
114
- * the end. When this response is piped, all of the streams will be piped
115
- * one after the other.
116
- *
117
- * @param readable The new stream to chain
118
- */ push(readable) {
119
- this.response = this.coerce();
120
- this.response.push(readable);
121
- }
122
- /**
123
- * Pipes the response to a writable stream. This will close/cancel the
124
- * writable stream if an error is encountered. If this doesn't throw, then
125
- * the writable stream will be closed or aborted.
126
- *
127
- * @param writable Writable stream to pipe the response to
128
- */ async pipeTo(writable) {
129
- try {
130
- await this.readable.pipeTo(writable, { preventClose: true });
131
- if (this.waitUntil) await this.waitUntil;
132
- await writable.close();
133
- } catch (err) {
134
- if ((0, _pipereadable.isAbortError)(err)) {
135
- await writable.abort(err);
136
- return;
137
- }
138
- throw err;
139
- }
140
- }
141
- /**
142
- * Pipes the response to a node response. This will close/cancel the node
143
- * response if an error is encountered.
144
- *
145
- * @param res
146
- */ async pipeToNodeResponse(res) {
147
- await (0, _pipereadable.pipeToNodeResponse)(this.readable, res, this.waitUntil);
148
- }
149
- };
150
- }) });
151
-
152
- //#endregion
153
- export default require_render_result();
154
-
155
- export { require_render_result };
156
- //# sourceMappingURL=render-result.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-result.js","names":["#_"],"sources":["../../../../../node_modules/next/dist/server/render-result.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return RenderResult;\n }\n});\nconst _nodewebstreamshelper = require(\"./stream-utils/node-web-streams-helper\");\nconst _pipereadable = require(\"./pipe-readable\");\nconst _invarianterror = require(\"../shared/lib/invariant-error\");\nclass RenderResult {\n static #_ = /**\n * A render result that represents an empty response. This is used to\n * represent a response that was not found or was already sent.\n */ this.EMPTY = new RenderResult(null, {\n metadata: {},\n contentType: null\n });\n /**\n * Creates a new RenderResult instance from a static response.\n *\n * @param value the static response value\n * @param contentType the content type of the response\n * @returns a new RenderResult instance\n */ static fromStatic(value, contentType) {\n return new RenderResult(value, {\n metadata: {},\n contentType\n });\n }\n constructor(response, { contentType, waitUntil, metadata }){\n this.response = response;\n this.contentType = contentType;\n this.metadata = metadata;\n this.waitUntil = waitUntil;\n }\n assignMetadata(metadata) {\n Object.assign(this.metadata, metadata);\n }\n /**\n * Returns true if the response is null. It can be null if the response was\n * not found or was already sent.\n */ get isNull() {\n return this.response === null;\n }\n /**\n * Returns false if the response is a string. It can be a string if the page\n * was prerendered. If it's not, then it was generated dynamically.\n */ get isDynamic() {\n return typeof this.response !== 'string';\n }\n toUnchunkedString(stream = false) {\n if (this.response === null) {\n // If the response is null, return an empty string. This behavior is\n // intentional as we're now providing the `RenderResult.EMPTY` value.\n return '';\n }\n if (typeof this.response !== 'string') {\n if (!stream) {\n throw Object.defineProperty(new _invarianterror.InvariantError('dynamic responses cannot be unchunked. This is a bug in Next.js'), \"__NEXT_ERROR_CODE\", {\n value: \"E732\",\n enumerable: false,\n configurable: true\n });\n }\n return (0, _nodewebstreamshelper.streamToString)(this.readable);\n }\n return this.response;\n }\n /**\n * Returns a readable stream of the response.\n */ get readable() {\n if (this.response === null) {\n // If the response is null, return an empty stream. This behavior is\n // intentional as we're now providing the `RenderResult.EMPTY` value.\n return new ReadableStream({\n start (controller) {\n controller.close();\n }\n });\n }\n if (typeof this.response === 'string') {\n return (0, _nodewebstreamshelper.streamFromString)(this.response);\n }\n if (Buffer.isBuffer(this.response)) {\n return (0, _nodewebstreamshelper.streamFromBuffer)(this.response);\n }\n // If the response is an array of streams, then chain them together.\n if (Array.isArray(this.response)) {\n return (0, _nodewebstreamshelper.chainStreams)(...this.response);\n }\n return this.response;\n }\n /**\n * Coerces the response to an array of streams. This will convert the response\n * to an array of streams if it is not already one.\n *\n * @returns An array of streams\n */ coerce() {\n if (this.response === null) {\n // If the response is null, return an empty stream. This behavior is\n // intentional as we're now providing the `RenderResult.EMPTY` value.\n return [];\n }\n if (typeof this.response === 'string') {\n return [\n (0, _nodewebstreamshelper.streamFromString)(this.response)\n ];\n } else if (Array.isArray(this.response)) {\n return this.response;\n } else if (Buffer.isBuffer(this.response)) {\n return [\n (0, _nodewebstreamshelper.streamFromBuffer)(this.response)\n ];\n } else {\n return [\n this.response\n ];\n }\n }\n /**\n * Pipes the response through a transform stream. This converts the response\n * to a single readable stream (chaining if needed) and pipes it through the\n * provided transform.\n *\n * @param transform The transform stream to pipe through\n */ pipeThrough(transform) {\n this.response = this.readable.pipeThrough(transform);\n }\n /**\n * Unshifts a new stream to the response. This will convert the response to an\n * array of streams if it is not already one and will add the new stream to\n * the start of the array. When this response is piped, all of the streams\n * will be piped one after the other.\n *\n * @param readable The new stream to unshift\n */ unshift(readable) {\n // Coerce the response to an array of streams.\n this.response = this.coerce();\n // Add the new stream to the start of the array.\n this.response.unshift(readable);\n }\n /**\n * Chains a new stream to the response. This will convert the response to an\n * array of streams if it is not already one and will add the new stream to\n * the end. When this response is piped, all of the streams will be piped\n * one after the other.\n *\n * @param readable The new stream to chain\n */ push(readable) {\n // Coerce the response to an array of streams.\n this.response = this.coerce();\n // Add the new stream to the end of the array.\n this.response.push(readable);\n }\n /**\n * Pipes the response to a writable stream. This will close/cancel the\n * writable stream if an error is encountered. If this doesn't throw, then\n * the writable stream will be closed or aborted.\n *\n * @param writable Writable stream to pipe the response to\n */ async pipeTo(writable) {\n try {\n await this.readable.pipeTo(writable, {\n // We want to close the writable stream ourselves so that we can wait\n // for the waitUntil promise to resolve before closing it. If an error\n // is encountered, we'll abort the writable stream if we swallowed the\n // error.\n preventClose: true\n });\n // If there is a waitUntil promise, wait for it to resolve before\n // closing the writable stream.\n if (this.waitUntil) await this.waitUntil;\n // Close the writable stream.\n await writable.close();\n } catch (err) {\n // If this is an abort error, we should abort the writable stream (as we\n // took ownership of it when we started piping). We don't need to re-throw\n // because we handled the error.\n if ((0, _pipereadable.isAbortError)(err)) {\n // Abort the writable stream if an error is encountered.\n await writable.abort(err);\n return;\n }\n // We're not aborting the writer here as when this method throws it's not\n // clear as to how so the caller should assume it's their responsibility\n // to clean up the writer.\n throw err;\n }\n }\n /**\n * Pipes the response to a node response. This will close/cancel the node\n * response if an error is encountered.\n *\n * @param res\n */ async pipeToNodeResponse(res) {\n await (0, _pipereadable.pipeToNodeResponse)(this.readable, res, this.waitUntil);\n }\n}\n\n//# sourceMappingURL=render-result.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;AACF,QAAO,eAAe,SAAS,WAAW;EACtC,YAAY;EACZ,KAAK,WAAW;AACZ,UAAO;;EAEd,CAAC;CACF,MAAM;CACN,MAAM;CACN,MAAM;CACN,IAAM,eAAN,MAAM,aAAa;EACf,QAAOA,IAGL,KAAK,QAAQ,IAAI,aAAa,MAAM;GAClC,UAAU,EAAE;GACZ,aAAa;GAChB,CAAC;;;;;;;KAOA,OAAO,WAAW,OAAO,aAAa;AACpC,UAAO,IAAI,aAAa,OAAO;IAC3B,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O,EACF,GAAG,sBAAsB,kBAAkB,KAAK,SAAS,CAC7D;OAED,QAAO,CACH,KAAK,SACR;;;;;;;;KASP,YAAY,WAAW;AACrB,QAAK,WAAW,KAAK,SAAS,YAAY,UAAU;;;;;;;;;KAStD,QAAQ,UAAU;AAEhB,QAAK,WAAW,KAAK,QAAQ;AAE7B,QAAK,SAAS,QAAQ,SAAS;;;;;;;;;KASjC,KAAK,UAAU;AAEb,QAAK,WAAW,KAAK,QAAQ;AAE7B,QAAK,SAAS,KAAK,SAAS;;;;;;;;KAQ9B,MAAM,OAAO,UAAU;AACrB,OAAI;AACA,UAAM,KAAK,SAAS,OAAO,UAAU,EAKjC,cAAc,MACjB,CAAC;AAGF,QAAI,KAAK,UAAW,OAAM,KAAK;AAE/B,UAAM,SAAS,OAAO;YACjB,KAAK;AAIV,SAAK,GAAG,cAAc,cAAc,IAAI,EAAE;AAEtC,WAAM,SAAS,MAAM,IAAI;AACzB;;AAKJ,UAAM;;;;;;;;KAQZ,MAAM,mBAAmB,KAAK;AAC5B,UAAO,GAAG,cAAc,oBAAoB,KAAK,UAAU,KAAK,KAAK,UAAU"}
@@ -1,54 +0,0 @@
1
- import { __commonJS } from "../../../../_virtual/rolldown_runtime.js";
2
-
3
- //#region node_modules/next/dist/server/request-meta.js
4
- var require_request_meta = /* @__PURE__ */ __commonJS({ "node_modules/next/dist/server/request-meta.js": ((exports) => {
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- function _export(target, all) {
7
- for (var name in all) Object.defineProperty(target, name, {
8
- enumerable: true,
9
- get: all[name]
10
- });
11
- }
12
- _export(exports, {
13
- NEXT_REQUEST_META: function() {
14
- return NEXT_REQUEST_META;
15
- },
16
- addRequestMeta: function() {
17
- return addRequestMeta;
18
- },
19
- getRequestMeta: function() {
20
- return getRequestMeta;
21
- },
22
- removeRequestMeta: function() {
23
- return removeRequestMeta;
24
- },
25
- setRequestMeta: function() {
26
- return setRequestMeta;
27
- }
28
- });
29
- const NEXT_REQUEST_META = Symbol.for("NextInternalRequestMeta");
30
- function getRequestMeta(req, key) {
31
- const meta = req[NEXT_REQUEST_META] || {};
32
- return typeof key === "string" ? meta[key] : meta;
33
- }
34
- function setRequestMeta(req, meta) {
35
- req[NEXT_REQUEST_META] = meta;
36
- return meta;
37
- }
38
- function addRequestMeta(request, key, value) {
39
- const meta = getRequestMeta(request);
40
- meta[key] = value;
41
- return setRequestMeta(request, meta);
42
- }
43
- function removeRequestMeta(request, key) {
44
- const meta = getRequestMeta(request);
45
- delete meta[key];
46
- return setRequestMeta(request, meta);
47
- }
48
- }) });
49
-
50
- //#endregion
51
- export default require_request_meta();
52
-
53
- export { require_request_meta };
54
- //# sourceMappingURL=request-meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-meta.js","names":[],"sources":["../../../../../node_modules/next/dist/server/request-meta.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n NEXT_REQUEST_META: null,\n addRequestMeta: null,\n getRequestMeta: null,\n removeRequestMeta: null,\n setRequestMeta: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n NEXT_REQUEST_META: function() {\n return NEXT_REQUEST_META;\n },\n addRequestMeta: function() {\n return addRequestMeta;\n },\n getRequestMeta: function() {\n return getRequestMeta;\n },\n removeRequestMeta: function() {\n return removeRequestMeta;\n },\n setRequestMeta: function() {\n return setRequestMeta;\n }\n});\nconst NEXT_REQUEST_META = Symbol.for('NextInternalRequestMeta');\nfunction getRequestMeta(req, key) {\n const meta = req[NEXT_REQUEST_META] || {};\n return typeof key === 'string' ? meta[key] : meta;\n}\nfunction setRequestMeta(req, meta) {\n req[NEXT_REQUEST_META] = meta;\n return meta;\n}\nfunction addRequestMeta(request, key, value) {\n const meta = getRequestMeta(request);\n meta[key] = value;\n return setRequestMeta(request, meta);\n}\nfunction removeRequestMeta(request, key) {\n const meta = getRequestMeta(request);\n delete meta[key];\n return setRequestMeta(request, meta);\n}\n\n//# sourceMappingURL=request-meta.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EACzC,OAAO,MACV,CAAC;CAQF,SAAS,QAAQ,QAAQ,KAAK;AAC1B,OAAI,IAAI,QAAQ,IAAI,QAAO,eAAe,QAAQ,MAAM;GACpD,YAAY;GACZ,KAAK,IAAI;GACZ,CAAC;;AAEN,SAAQ,SAAS;EACb,mBAAmB,WAAW;AAC1B,UAAO;;EAEX,gBAAgB,WAAW;AACvB,UAAO;;EAEX,gBAAgB,WAAW;AACvB,UAAO;;EAEX,mBAAmB,WAAW;AAC1B,UAAO;;EAEX,gBAAgB,WAAW;AACvB,UAAO;;EAEd,CAAC;CACF,MAAM,oBAAoB,OAAO,IAAI,0BAA0B;CAC/D,SAAS,eAAe,KAAK,KAAK;EAC9B,MAAM,OAAO,IAAI,sBAAsB,EAAE;AACzC,SAAO,OAAO,QAAQ,WAAW,KAAK,OAAO;;CAEjD,SAAS,eAAe,KAAK,MAAM;AAC/B,MAAI,qBAAqB;AACzB,SAAO;;CAEX,SAAS,eAAe,SAAS,KAAK,OAAO;EACzC,MAAM,OAAO,eAAe,QAAQ;AACpC,OAAK,OAAO;AACZ,SAAO,eAAe,SAAS,KAAK;;CAExC,SAAS,kBAAkB,SAAS,KAAK;EACrC,MAAM,OAAO,eAAe,QAAQ;AACpC,SAAO,KAAK;AACZ,SAAO,eAAe,SAAS,KAAK"}