1 line
7.9 KiB
Plaintext
1 line
7.9 KiB
Plaintext
{"version":3,"sources":["../../../src/server/stream-utils/node-web-streams-helper.ts"],"names":["nonNullable","getTracer","AppRenderSpan","decodeText","encodeText","queueTask","process","env","NEXT_RUNTIME","globalThis","setTimeout","setImmediate","streamToBufferedResult","renderResult","textDecoder","TextDecoder","concatenatedString","writable","write","chunk","end","on","off","pipe","cloneTransformStream","source","sourceReader","readable","getReader","clone","TransformStream","start","controller","done","value","read","enqueue","transform","chainStreams","streams","promise","Promise","resolve","i","length","then","pipeTo","preventClose","streamFromString","str","ReadableStream","close","streamToString","stream","reader","bufferedString","createBufferedTransformStream","bufferedBytes","Uint8Array","pendingFlush","flushBuffer","newBufferedBytes","byteLength","set","flush","createInsertedHTMLStream","getServerInsertedHTML","insertedHTMLChunk","renderToInitialFizzStream","ReactDOMServer","element","streamOptions","trace","renderToReadableStream","createHeadInsertionTransformStream","insert","inserted","freezing","insertion","content","index","indexOf","insertedHeadContent","slice","createDeferredSuffixStream","suffix","suffixFlushed","suffixFlushTask","res","createMergedTransformStream","dataStream","dataStreamFinished","dataStreamReader","err","error","createMoveSuffixStream","foundSuffix","endsWith","contentWithoutSuffix","createRootLayoutValidatorStream","assetPrefix","getTree","foundHtml","foundBody","includes","missingTags","filter","JSON","stringify","tree","continueFizzStream","renderStream","inlinedDataStream","generateStaticHTML","serverInsertedHTMLToHead","validateRootLayout","closeTag","suffixUnclosed","split","allReady","transforms","reduce","pipeThrough"],"mappings":"AAGA,SAASA,WAAW,QAAQ,yBAAwB;AACpD,SAASC,SAAS,QAAQ,sBAAqB;AAC/C,SAASC,aAAa,QAAQ,yBAAwB;AACtD,SAASC,UAAU,EAAEC,UAAU,QAAQ,kBAAiB;AAExD,MAAMC,YACJC,QAAQC,GAAG,CAACC,YAAY,KAAK,SAASC,WAAWC,UAAU,GAAGC;AAMhE,OAAO,MAAMC,yBAAyB,OACpCC;IAEA,MAAMC,cAAc,IAAIC;IACxB,IAAIC,qBAAqB;I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