@angular/ssr 19.0.0-rc.3 → 19.0.1
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.
- package/fesm2022/ssr.mjs +4 -1
- package/fesm2022/ssr.mjs.map +1 -1
- package/package.json +11 -11
package/fesm2022/ssr.mjs
CHANGED
|
@@ -817,8 +817,11 @@ async function getRoutesFromAngularRouterConfig(bootstrap, document, url, invoke
|
|
|
817
817
|
const router = injector.get(Router);
|
|
818
818
|
const routesResults = [];
|
|
819
819
|
const errors = [];
|
|
820
|
-
|
|
820
|
+
let baseHref = injector.get(APP_BASE_HREF, null, { optional: true }) ??
|
|
821
821
|
injector.get(PlatformLocation).getBaseHrefFromDOM();
|
|
822
|
+
if (baseHref.startsWith('./')) {
|
|
823
|
+
baseHref = baseHref.slice(2);
|
|
824
|
+
}
|
|
822
825
|
const compiler = injector.get(Compiler);
|
|
823
826
|
const serverRoutesConfig = injector.get(SERVER_ROUTES_CONFIG, null, { optional: true });
|
|
824
827
|
let serverConfigRouteTree;
|
package/fesm2022/ssr.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr.mjs","sources":["../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/assets.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/console.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/manifest.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/url.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/ng.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-config.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-tree.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/ng-routes.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/hooks.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/router.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/crypto.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/inline-critical-css.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/lru-cache.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/private_export.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/i18n.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app-engine.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/handler.mjs"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages server-side assets.\n */\nexport class ServerAssets {\n manifest;\n /**\n * Creates an instance of ServerAsset.\n *\n * @param manifest - The manifest containing the server assets.\n */\n constructor(manifest) {\n this.manifest = manifest;\n }\n /**\n * Retrieves the content of a server-side asset using its path.\n *\n * @param path - The path to the server asset within the manifest.\n * @returns The server asset associated with the provided path, as a `ServerAsset` object.\n * @throws Error - Throws an error if the asset does not exist.\n */\n getServerAsset(path) {\n const asset = this.manifest.assets.get(path);\n if (!asset) {\n throw new Error(`Server asset '${path}' does not exist.`);\n }\n return asset;\n }\n /**\n * Checks if a specific server-side asset exists.\n *\n * @param path - The path to the server asset.\n * @returns A boolean indicating whether the asset exists.\n */\n hasServerAsset(path) {\n return this.manifest.assets.has(path);\n }\n /**\n * Retrieves the asset for 'index.server.html'.\n *\n * @returns The `ServerAsset` object for 'index.server.html'.\n * @throws Error - Throws an error if 'index.server.html' does not exist.\n */\n getIndexServerHtml() {\n return this.getServerAsset('index.server.html');\n }\n}\n//# sourceMappingURL=assets.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\n/**\n * Custom implementation of the Angular Console service that filters out specific log messages.\n *\n * This class extends the internal Angular `ɵConsole` class to provide customized logging behavior.\n * It overrides the `log` method to suppress logs that match certain predefined messages.\n */\nexport class Console extends ɵConsole {\n /**\n * A set of log messages that should be ignored and not printed to the console.\n */\n ignoredLogs = new Set(['Angular is running in development mode.']);\n /**\n * Logs a message to the console if it is not in the set of ignored messages.\n *\n * @param message - The message to log to the console.\n *\n * This method overrides the `log` method of the `ɵConsole` class. It checks if the\n * message is in the `ignoredLogs` set. If it is not, it delegates the logging to\n * the parent class's `log` method. Otherwise, the message is suppressed.\n */\n log(message) {\n if (!this.ignoredLogs.has(message)) {\n super.log(message);\n }\n }\n}\n//# sourceMappingURL=console.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * The Angular app manifest object.\n * This is used internally to store the current Angular app manifest.\n */\nlet angularAppManifest;\n/**\n * Sets the Angular app manifest.\n *\n * @param manifest - The manifest object to set for the Angular application.\n */\nexport function setAngularAppManifest(manifest) {\n angularAppManifest = manifest;\n}\n/**\n * Gets the Angular app manifest.\n *\n * @returns The Angular app manifest.\n * @throws Will throw an error if the Angular app manifest is not set.\n */\nexport function getAngularAppManifest() {\n if (!angularAppManifest) {\n throw new Error('Angular app manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppManifest;\n}\n/**\n * The Angular app engine manifest object.\n * This is used internally to store the current Angular app engine manifest.\n */\nlet angularAppEngineManifest;\n/**\n * Sets the Angular app engine manifest.\n *\n * @param manifest - The engine manifest object to set.\n */\nexport function setAngularAppEngineManifest(manifest) {\n angularAppEngineManifest = manifest;\n}\n/**\n * Gets the Angular app engine manifest.\n *\n * @returns The Angular app engine manifest.\n * @throws Will throw an error if the Angular app engine manifest is not set.\n */\nexport function getAngularAppEngineManifest() {\n if (!angularAppEngineManifest) {\n throw new Error('Angular app engine manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppEngineManifest;\n}\n//# sourceMappingURL=manifest.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Removes the trailing slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the trailing slash.\n * @returns The URL string without a trailing slash.\n *\n * @example\n * ```js\n * stripTrailingSlash('path/'); // 'path'\n * stripTrailingSlash('/path'); // '/path'\n * stripTrailingSlash('/'); // '/'\n * stripTrailingSlash(''); // ''\n * ```\n */\nexport function stripTrailingSlash(url) {\n // Check if the last character of the URL is a slash\n return url.length > 1 && url[url.length - 1] === '/' ? url.slice(0, -1) : url;\n}\n/**\n * Removes the leading slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the leading slash.\n * @returns The URL string without a leading slash.\n *\n * @example\n * ```js\n * stripLeadingSlash('/path'); // 'path'\n * stripLeadingSlash('/path/'); // 'path/'\n * stripLeadingSlash('/'); // '/'\n * stripLeadingSlash(''); // ''\n * ```\n */\nexport function stripLeadingSlash(url) {\n // Check if the first character of the URL is a slash\n return url.length > 1 && url[0] === '/' ? url.slice(1) : url;\n}\n/**\n * Adds a leading slash to a URL if it does not already have one.\n *\n * @param url - The URL string to which the leading slash will be added.\n * @returns The URL string with a leading slash.\n *\n * @example\n * ```js\n * addLeadingSlash('path'); // '/path'\n * addLeadingSlash('/path'); // '/path'\n * ```\n */\nexport function addLeadingSlash(url) {\n // Check if the URL already starts with a slash\n return url[0] === '/' ? url : `/${url}`;\n}\n/**\n * Joins URL parts into a single URL string.\n *\n * This function takes multiple URL segments, normalizes them by removing leading\n * and trailing slashes where appropriate, and then joins them into a single URL.\n *\n * @param parts - The parts of the URL to join. Each part can be a string with or without slashes.\n * @returns The joined URL string, with normalized slashes.\n *\n * @example\n * ```js\n * joinUrlParts('path/', '/to/resource'); // '/path/to/resource'\n * joinUrlParts('/path/', 'to/resource'); // '/path/to/resource'\n * joinUrlParts('', ''); // '/'\n * ```\n */\nexport function joinUrlParts(...parts) {\n const normalizeParts = [];\n for (const part of parts) {\n if (part === '') {\n // Skip any empty parts\n continue;\n }\n let normalizedPart = part;\n if (part[0] === '/') {\n normalizedPart = normalizedPart.slice(1);\n }\n if (part[part.length - 1] === '/') {\n normalizedPart = normalizedPart.slice(0, -1);\n }\n if (normalizedPart !== '') {\n normalizeParts.push(normalizedPart);\n }\n }\n return addLeadingSlash(normalizeParts.join('/'));\n}\n/**\n * Strips `/index.html` from the end of a URL's path, if present.\n *\n * This function is used to convert URLs pointing to an `index.html` file into their directory\n * equivalents. For example, it transforms a URL like `http://www.example.com/page/index.html`\n * into `http://www.example.com/page`.\n *\n * @param url - The URL object to process.\n * @returns A new URL object with `/index.html` removed from the path, if it was present.\n *\n * @example\n * ```typescript\n * const originalUrl = new URL('http://www.example.com/page/index.html');\n * const cleanedUrl = stripIndexHtmlFromURL(originalUrl);\n * console.log(cleanedUrl.href); // Output: 'http://www.example.com/page'\n * ```\n */\nexport function stripIndexHtmlFromURL(url) {\n if (url.pathname.endsWith('/index.html')) {\n const modifiedURL = new URL(url);\n // Remove '/index.html' from the pathname\n modifiedURL.pathname = modifiedURL.pathname.slice(0, /** '/index.html'.length */ -11);\n return modifiedURL;\n }\n return url;\n}\n//# sourceMappingURL=url.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\nimport { ɵSERVER_CONTEXT as SERVER_CONTEXT, renderApplication, renderModule, } from '@angular/platform-server';\nimport { Console } from '../console';\nimport { stripIndexHtmlFromURL } from './url';\n/**\n * Renders an Angular application or module to an HTML string.\n *\n * This function determines whether the provided `bootstrap` value is an Angular module\n * or a bootstrap function and calls the appropriate rendering method (`renderModule` or\n * `renderApplication`) based on that determination.\n *\n * @param html - The HTML string to be used as the initial document content.\n * @param bootstrap - Either an Angular module type or a function that returns a promise\n * resolving to an `ApplicationRef`.\n * @param url - The URL of the application. This is used for server-side rendering to\n * correctly handle route-based rendering.\n * @param platformProviders - An array of platform providers to be used during the\n * rendering process.\n * @param serverContext - A string representing the server context, used to provide additional\n * context or metadata during server-side rendering.\n * @returns A promise that resolves to a string containing the rendered HTML.\n */\nexport function renderAngular(html, bootstrap, url, platformProviders, serverContext) {\n const providers = [\n {\n provide: SERVER_CONTEXT,\n useValue: serverContext,\n },\n {\n // An Angular Console Provider that does not print a set of predefined logs.\n provide: ɵConsole,\n // Using `useClass` would necessitate decorating `Console` with `@Injectable`,\n // which would require switching from `ts_library` to `ng_module`. This change\n // would also necessitate various patches of `@angular/bazel` to support ESM.\n useFactory: () => new Console(),\n },\n ...platformProviders,\n ];\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const urlToRender = stripIndexHtmlFromURL(url).toString();\n return isNgModule(bootstrap)\n ? renderModule(bootstrap, {\n url: urlToRender,\n document: html,\n extraProviders: providers,\n })\n : renderApplication(bootstrap, {\n url: urlToRender,\n document: html,\n platformProviders: providers,\n });\n}\n/**\n * Type guard to determine if a given value is an Angular module.\n * Angular modules are identified by the presence of the `ɵmod` static property.\n * This function helps distinguish between Angular modules and bootstrap functions.\n *\n * @param value - The value to be checked.\n * @returns True if the value is an Angular module (i.e., it has the `ɵmod` property), false otherwise.\n */\nexport function isNgModule(value) {\n return 'ɵmod' in value;\n}\n//# sourceMappingURL=ng.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { InjectionToken, makeEnvironmentProviders } from '@angular/core';\n/**\n * Different rendering modes for server routes.\n * @see {@link provideServerRoutesConfig}\n * @see {@link ServerRoute}\n * @developerPreview\n */\nexport var RenderMode;\n(function (RenderMode) {\n /** Server-Side Rendering (SSR) mode, where content is rendered on the server for each request. */\n RenderMode[RenderMode[\"Server\"] = 0] = \"Server\";\n /** Client-Side Rendering (CSR) mode, where content is rendered on the client side in the browser. */\n RenderMode[RenderMode[\"Client\"] = 1] = \"Client\";\n /** Static Site Generation (SSG) mode, where content is pre-rendered at build time and served as static files. */\n RenderMode[RenderMode[\"Prerender\"] = 2] = \"Prerender\";\n})(RenderMode || (RenderMode = {}));\n/**\n * Defines the fallback strategies for Static Site Generation (SSG) routes when a pre-rendered path is not available.\n * This is particularly relevant for routes with parameterized URLs where some paths might not be pre-rendered at build time.\n * @see {@link ServerRoutePrerenderWithParams}\n * @developerPreview\n */\nexport var PrerenderFallback;\n(function (PrerenderFallback) {\n /**\n * Fallback to Server-Side Rendering (SSR) if the pre-rendered path is not available.\n * This strategy dynamically generates the page on the server at request time.\n */\n PrerenderFallback[PrerenderFallback[\"Server\"] = 0] = \"Server\";\n /**\n * Fallback to Client-Side Rendering (CSR) if the pre-rendered path is not available.\n * This strategy allows the page to be rendered on the client side.\n */\n PrerenderFallback[PrerenderFallback[\"Client\"] = 1] = \"Client\";\n /**\n * No fallback; if the path is not pre-rendered, the server will not handle the request.\n * This means the application will not provide any response for paths that are not pre-rendered.\n */\n PrerenderFallback[PrerenderFallback[\"None\"] = 2] = \"None\";\n})(PrerenderFallback || (PrerenderFallback = {}));\n/**\n * Token for providing the server routes configuration.\n * @internal\n */\nexport const SERVER_ROUTES_CONFIG = new InjectionToken('SERVER_ROUTES_CONFIG');\n/**\n/**\n * Sets up the necessary providers for configuring server routes.\n * This function accepts an array of server routes and optional configuration\n * options, returning an `EnvironmentProviders` object that encapsulates\n * the server routes and configuration settings.\n *\n * @param routes - An array of server routes to be provided.\n * @param options - (Optional) An object containing additional configuration options for server routes.\n * @returns An `EnvironmentProviders` instance with the server routes configuration.\n *\n * @returns An `EnvironmentProviders` object that contains the server routes configuration.\n *\n * @see {@link ServerRoute}\n * @see {@link ServerRoutesConfigOptions}\n * @developerPreview\n */\nexport function provideServerRoutesConfig(routes, options) {\n if (typeof ngServerMode === 'undefined' || !ngServerMode) {\n throw new Error(`The 'provideServerRoutesConfig' function should not be invoked within the browser portion of the application.`);\n }\n return makeEnvironmentProviders([\n {\n provide: SERVER_ROUTES_CONFIG,\n useValue: { routes, ...options },\n },\n ]);\n}\n//# sourceMappingURL=route-config.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripTrailingSlash } from '../utils/url';\n/**\n * A route tree implementation that supports efficient route matching, including support for wildcard routes.\n * This structure is useful for organizing and retrieving routes in a hierarchical manner,\n * enabling complex routing scenarios with nested paths.\n *\n * @typeParam AdditionalMetadata - Type of additional metadata that can be associated with route nodes.\n */\nexport class RouteTree {\n /**\n * The root node of the route tree.\n * All routes are stored and accessed relative to this root node.\n */\n root = this.createEmptyRouteTreeNode('');\n /**\n * A counter that tracks the order of route insertion.\n * This ensures that routes are matched in the order they were defined,\n * with earlier routes taking precedence.\n */\n insertionIndexCounter = 0;\n /**\n * Inserts a new route into the route tree.\n * The route is broken down into segments, and each segment is added to the tree.\n * Parameterized segments (e.g., :id) are normalized to wildcards (*) for matching purposes.\n *\n * @param route - The route path to insert into the tree.\n * @param metadata - Metadata associated with the route, excluding the route path itself.\n */\n insert(route, metadata) {\n let node = this.root;\n const segments = this.getPathSegments(route);\n for (const segment of segments) {\n // Replace parameterized segments (e.g., :id) with a wildcard (*) for matching\n const normalizedSegment = segment[0] === ':' ? '*' : segment;\n let childNode = node.children.get(normalizedSegment);\n if (!childNode) {\n childNode = this.createEmptyRouteTreeNode(normalizedSegment);\n node.children.set(normalizedSegment, childNode);\n }\n node = childNode;\n }\n // At the leaf node, store the full route and its associated metadata\n node.metadata = {\n ...metadata,\n route: segments.join('/'),\n };\n node.insertionIndex = this.insertionIndexCounter++;\n }\n /**\n * Matches a given route against the route tree and returns the best matching route's metadata.\n * The best match is determined by the lowest insertion index, meaning the earliest defined route\n * takes precedence.\n *\n * @param route - The route path to match against the route tree.\n * @returns The metadata of the best matching route or `undefined` if no match is found.\n */\n match(route) {\n const segments = this.getPathSegments(route);\n return this.traverseBySegments(segments)?.metadata;\n }\n /**\n * Converts the route tree into a serialized format representation.\n * This method converts the route tree into an array of metadata objects that describe the structure of the tree.\n * The array represents the routes in a nested manner where each entry includes the route and its associated metadata.\n *\n * @returns An array of `RouteTreeNodeMetadata` objects representing the route tree structure.\n * Each object includes the `route` and associated metadata of a route.\n */\n toObject() {\n return Array.from(this.traverse());\n }\n /**\n * Constructs a `RouteTree` from an object representation.\n * This method is used to recreate a `RouteTree` instance from an array of metadata objects.\n * The array should be in the format produced by `toObject`, allowing for the reconstruction of the route tree\n * with the same routes and metadata.\n *\n * @param value - An array of `RouteTreeNodeMetadata` objects that represent the serialized format of the route tree.\n * Each object should include a `route` and its associated metadata.\n * @returns A new `RouteTree` instance constructed from the provided metadata objects.\n */\n static fromObject(value) {\n const tree = new RouteTree();\n for (const { route, ...metadata } of value) {\n tree.insert(route, metadata);\n }\n return tree;\n }\n /**\n * A generator function that recursively traverses the route tree and yields the metadata of each node.\n * This allows for easy and efficient iteration over all nodes in the tree.\n *\n * @param node - The current node to start the traversal from. Defaults to the root node of the tree.\n */\n *traverse(node = this.root) {\n if (node.metadata) {\n yield node.metadata;\n }\n for (const childNode of node.children.values()) {\n yield* this.traverse(childNode);\n }\n }\n /**\n * Extracts the path segments from a given route string.\n *\n * @param route - The route string from which to extract segments.\n * @returns An array of path segments.\n */\n getPathSegments(route) {\n return stripTrailingSlash(route).split('/');\n }\n /**\n * Recursively traverses the route tree from a given node, attempting to match the remaining route segments.\n * If the node is a leaf node (no more segments to match) and contains metadata, the node is yielded.\n *\n * This function prioritizes exact segment matches first, followed by wildcard matches (`*`),\n * and finally deep wildcard matches (`**`) that consume all segments.\n *\n * @param remainingSegments - The remaining segments of the route path to match.\n * @param node - The current node in the route tree to start traversal from.\n *\n * @returns The node that best matches the remaining segments or `undefined` if no match is found.\n */\n traverseBySegments(remainingSegments, node = this.root) {\n const { metadata, children } = node;\n // If there are no remaining segments and the node has metadata, return this node\n if (!remainingSegments?.length) {\n if (metadata) {\n return node;\n }\n return;\n }\n // If the node has no children, end the traversal\n if (!children.size) {\n return;\n }\n const [segment, ...restSegments] = remainingSegments;\n let currentBestMatchNode;\n // 1. Exact segment match\n const exactMatchNode = node.children.get(segment);\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, exactMatchNode));\n // 2. Wildcard segment match (`*`)\n const wildcardNode = node.children.get('*');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, wildcardNode));\n // 3. Deep wildcard segment match (`**`)\n const deepWildcardNode = node.children.get('**');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, deepWildcardNode);\n return currentBestMatchNode;\n }\n /**\n * Compares two nodes and returns the node with higher priority based on insertion index.\n * A node with a lower insertion index is prioritized as it was defined earlier.\n *\n * @param currentBestMatchNode - The current best match node.\n * @param candidateNode - The node being evaluated for higher priority based on insertion index.\n * @returns The node with higher priority (i.e., lower insertion index). If one of the nodes is `undefined`, the other node is returned.\n */\n getHigherPriorityNode(currentBestMatchNode, candidateNode) {\n if (!candidateNode) {\n return currentBestMatchNode;\n }\n if (!currentBestMatchNode) {\n return candidateNode;\n }\n return candidateNode.insertionIndex < currentBestMatchNode.insertionIndex\n ? candidateNode\n : currentBestMatchNode;\n }\n /**\n * Creates an empty route tree node with the specified segment.\n * This helper function is used during the tree construction.\n *\n * @param segment - The route segment that this node represents.\n * @returns A new, empty route tree node.\n */\n createEmptyRouteTreeNode(segment) {\n return {\n segment,\n insertionIndex: -1,\n children: new Map(),\n };\n }\n}\n//# sourceMappingURL=route-tree.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { APP_BASE_HREF, PlatformLocation } from '@angular/common';\nimport { ApplicationRef, Compiler, runInInjectionContext, ɵwhenStable as whenStable, ɵConsole, } from '@angular/core';\nimport { INITIAL_CONFIG, platformServer } from '@angular/platform-server';\nimport { Router, ɵloadChildren as loadChildrenHelper } from '@angular/router';\nimport { ServerAssets } from '../assets';\nimport { Console } from '../console';\nimport { getAngularAppManifest } from '../manifest';\nimport { isNgModule } from '../utils/ng';\nimport { joinUrlParts, stripLeadingSlash } from '../utils/url';\nimport { PrerenderFallback, RenderMode, SERVER_ROUTES_CONFIG, } from './route-config';\nimport { RouteTree } from './route-tree';\n/**\n * Regular expression to match segments preceded by a colon in a string.\n */\nconst URL_PARAMETER_REGEXP = /(?<!\\\\):([^/]+)/g;\n/**\n * An set of HTTP status codes that are considered valid for redirect responses.\n */\nconst VALID_REDIRECT_RESPONSE_CODES = new Set([301, 302, 303, 307, 308]);\n/**\n * Traverses an array of route configurations to generate route tree node metadata.\n *\n * This function processes each route and its children, handling redirects, SSG (Static Site Generation) settings,\n * and lazy-loaded routes. It yields route metadata for each route and its potential variants.\n *\n * @param options - The configuration options for traversing routes.\n * @returns An async iterable iterator yielding either route tree node metadata or an error object with an error message.\n */\nasync function* traverseRoutesConfig(options) {\n const { routes, compiler, parentInjector, parentRoute, serverConfigRouteTree, invokeGetPrerenderParams, includePrerenderFallbackRoutes, } = options;\n for (const route of routes) {\n try {\n const { path = '', redirectTo, loadChildren, children } = route;\n const currentRoutePath = joinUrlParts(parentRoute, path);\n // Get route metadata from the server config route tree, if available\n let matchedMetaData;\n if (serverConfigRouteTree) {\n matchedMetaData = serverConfigRouteTree.match(currentRoutePath);\n if (!matchedMetaData) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route does not match any route defined in the server routing configuration. ` +\n 'Please ensure this route is added to the server routing configuration.',\n };\n continue;\n }\n matchedMetaData.presentInClientRouter = true;\n }\n const metadata = {\n renderMode: RenderMode.Prerender,\n ...matchedMetaData,\n route: currentRoutePath,\n };\n delete metadata.presentInClientRouter;\n // Handle redirects\n if (typeof redirectTo === 'string') {\n const redirectToResolved = resolveRedirectTo(currentRoutePath, redirectTo);\n if (metadata.status && !VALID_REDIRECT_RESPONSE_CODES.has(metadata.status)) {\n yield {\n error: `The '${metadata.status}' status code is not a valid redirect response code. ` +\n `Please use one of the following redirect response codes: ${[...VALID_REDIRECT_RESPONSE_CODES.values()].join(', ')}.`,\n };\n continue;\n }\n yield { ...metadata, redirectTo: redirectToResolved };\n }\n else if (metadata.renderMode === RenderMode.Prerender) {\n // Handle SSG routes\n yield* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n }\n else {\n yield metadata;\n }\n // Recursively process child routes\n if (children?.length) {\n yield* traverseRoutesConfig({\n ...options,\n routes: children,\n parentRoute: currentRoutePath,\n });\n }\n // Load and process lazy-loaded child routes\n if (loadChildren) {\n const loadedChildRoutes = await loadChildrenHelper(route, compiler, parentInjector).toPromise();\n if (loadedChildRoutes) {\n const { routes: childRoutes, injector = parentInjector } = loadedChildRoutes;\n yield* traverseRoutesConfig({\n ...options,\n routes: childRoutes,\n parentInjector: injector,\n parentRoute: currentRoutePath,\n });\n }\n }\n }\n catch (error) {\n yield {\n error: `Error processing route '${stripLeadingSlash(route.path ?? '')}': ${error.message}`,\n };\n }\n }\n}\n/**\n * Handles SSG (Static Site Generation) routes by invoking `getPrerenderParams` and yielding\n * all parameterized paths, returning any errors encountered.\n *\n * @param metadata - The metadata associated with the route tree node.\n * @param parentInjector - The dependency injection container for the parent route.\n * @param invokeGetPrerenderParams - A flag indicating whether to invoke the `getPrerenderParams` function.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result.\n * @returns An async iterable iterator that yields route tree node metadata for each SSG path or errors.\n */\nasync function* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes) {\n if (metadata.renderMode !== RenderMode.Prerender) {\n throw new Error(`'handleSSGRoute' was called for a route which rendering mode is not prerender.`);\n }\n const { route: currentRoutePath, fallback, ...meta } = metadata;\n const getPrerenderParams = 'getPrerenderParams' in meta ? meta.getPrerenderParams : undefined;\n if ('getPrerenderParams' in meta) {\n delete meta['getPrerenderParams'];\n }\n if (!URL_PARAMETER_REGEXP.test(currentRoutePath)) {\n // Route has no parameters\n yield {\n ...meta,\n route: currentRoutePath,\n };\n return;\n }\n if (invokeGetPrerenderParams) {\n if (!getPrerenderParams) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route uses prerendering and includes parameters, but 'getPrerenderParams' ` +\n `is missing. Please define 'getPrerenderParams' function for this route in your server routing configuration ` +\n `or specify a different 'renderMode'.`,\n };\n return;\n }\n const parameters = await runInInjectionContext(parentInjector, () => getPrerenderParams());\n try {\n for (const params of parameters) {\n const routeWithResolvedParams = currentRoutePath.replace(URL_PARAMETER_REGEXP, (match) => {\n const parameterName = match.slice(1);\n const value = params[parameterName];\n if (typeof value !== 'string') {\n throw new Error(`The 'getPrerenderParams' function defined for the '${stripLeadingSlash(currentRoutePath)}' route ` +\n `returned a non-string value for parameter '${parameterName}'. ` +\n `Please make sure the 'getPrerenderParams' function returns values for all parameters ` +\n 'specified in this route.');\n }\n return value;\n });\n yield { ...meta, route: routeWithResolvedParams };\n }\n }\n catch (error) {\n yield { error: `${error.message}` };\n return;\n }\n }\n // Handle fallback render modes\n if (includePrerenderFallbackRoutes &&\n (fallback !== PrerenderFallback.None || !invokeGetPrerenderParams)) {\n yield {\n ...meta,\n route: currentRoutePath,\n renderMode: fallback === PrerenderFallback.Client ? RenderMode.Client : RenderMode.Server,\n };\n }\n}\n/**\n * Resolves the `redirectTo` property for a given route.\n *\n * This function processes the `redirectTo` property to ensure that it correctly\n * resolves relative to the current route path. If `redirectTo` is an absolute path,\n * it is returned as is. If it is a relative path, it is resolved based on the current route path.\n *\n * @param routePath - The current route path.\n * @param redirectTo - The target path for redirection.\n * @returns The resolved redirect path as a string.\n */\nfunction resolveRedirectTo(routePath, redirectTo) {\n if (redirectTo[0] === '/') {\n // If the redirectTo path is absolute, return it as is.\n return redirectTo;\n }\n // Resolve relative redirectTo based on the current route path.\n const segments = routePath.split('/');\n segments.pop(); // Remove the last segment to make it relative.\n return joinUrlParts(...segments, redirectTo);\n}\n/**\n * Builds a server configuration route tree from the given server routes configuration.\n *\n * @param serverRoutesConfig - The server routes to be used for configuration.\n\n * @returns An object containing:\n * - `serverConfigRouteTree`: A populated `RouteTree` instance, which organizes the server routes\n * along with their additional metadata.\n * - `errors`: An array of strings that list any errors encountered during the route tree construction\n * process, such as invalid paths.\n */\nfunction buildServerConfigRouteTree({ routes, appShellRoute }) {\n const serverRoutes = [...routes];\n if (appShellRoute !== undefined) {\n serverRoutes.unshift({\n path: appShellRoute,\n renderMode: RenderMode.Prerender,\n });\n }\n const serverConfigRouteTree = new RouteTree();\n const errors = [];\n for (const { path, ...metadata } of serverRoutes) {\n if (path[0] === '/') {\n errors.push(`Invalid '${path}' route configuration: the path cannot start with a slash.`);\n continue;\n }\n serverConfigRouteTree.insert(path, metadata);\n }\n return { serverConfigRouteTree, errors };\n}\n/**\n * Retrieves routes from the given Angular application.\n *\n * This function initializes an Angular platform, bootstraps the application or module,\n * and retrieves routes from the Angular router configuration. It handles both module-based\n * and function-based bootstrapping. It yields the resulting routes as `RouteTreeNodeMetadata` objects or errors.\n *\n * @param bootstrap - A function that returns a promise resolving to an `ApplicationRef` or an Angular module to bootstrap.\n * @param document - The initial HTML document used for server-side rendering.\n * This document is necessary to render the application on the server.\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object of type `AngularRouterConfigResult` or errors.\n */\nexport async function getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const { protocol, host } = url;\n // Create and initialize the Angular platform for server-side rendering.\n const platformRef = platformServer([\n {\n provide: INITIAL_CONFIG,\n useValue: { document, url: `${protocol}//${host}/` },\n },\n {\n provide: ɵConsole,\n useFactory: () => new Console(),\n },\n ]);\n try {\n let applicationRef;\n if (isNgModule(bootstrap)) {\n const moduleRef = await platformRef.bootstrapModule(bootstrap);\n applicationRef = moduleRef.injector.get(ApplicationRef);\n }\n else {\n applicationRef = await bootstrap();\n }\n // Wait until the application is stable.\n await whenStable(applicationRef);\n const injector = applicationRef.injector;\n const router = injector.get(Router);\n const routesResults = [];\n const errors = [];\n const baseHref = injector.get(APP_BASE_HREF, null, { optional: true }) ??\n injector.get(PlatformLocation).getBaseHrefFromDOM();\n const compiler = injector.get(Compiler);\n const serverRoutesConfig = injector.get(SERVER_ROUTES_CONFIG, null, { optional: true });\n let serverConfigRouteTree;\n if (serverRoutesConfig) {\n const result = buildServerConfigRouteTree(serverRoutesConfig);\n serverConfigRouteTree = result.serverConfigRouteTree;\n errors.push(...result.errors);\n }\n if (errors.length) {\n return {\n baseHref,\n routes: routesResults,\n errors,\n };\n }\n if (router.config.length) {\n // Retrieve all routes from the Angular router configuration.\n const traverseRoutes = traverseRoutesConfig({\n routes: router.config,\n compiler,\n parentInjector: injector,\n parentRoute: '',\n serverConfigRouteTree,\n invokeGetPrerenderParams,\n includePrerenderFallbackRoutes,\n });\n let seenAppShellRoute;\n for await (const result of traverseRoutes) {\n if ('error' in result) {\n errors.push(result.error);\n }\n else {\n routesResults.push(result);\n }\n }\n if (serverConfigRouteTree) {\n for (const { route, presentInClientRouter } of serverConfigRouteTree.traverse()) {\n if (presentInClientRouter || route === '**') {\n // Skip if matched or it's the catch-all route.\n continue;\n }\n errors.push(`The '${route}' server route does not match any routes defined in the Angular ` +\n `routing configuration (typically provided as a part of the 'provideRouter' call). ` +\n 'Please make sure that the mentioned server route is present in the Angular routing configuration.');\n }\n }\n }\n else {\n const rootRouteMetadata = serverConfigRouteTree?.match('') ?? {\n route: '',\n renderMode: RenderMode.Prerender,\n };\n routesResults.push({\n ...rootRouteMetadata,\n // Matched route might be `/*` or `/**`, which would make Angular serve all routes rather than just `/`.\n // So we limit to just `/` for the empty app router case.\n route: '',\n });\n }\n return {\n baseHref,\n routes: routesResults,\n errors,\n appShellRoute: serverRoutesConfig?.appShellRoute,\n };\n }\n finally {\n platformRef.destroy();\n }\n}\n/**\n * Asynchronously extracts routes from the Angular application configuration\n * and creates a `RouteTree` to manage server-side routing.\n *\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * See:\n * - https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51\n * - https://github.com/angular/angular/blob/6882cc7d9eed26d3caeedca027452367ba25f2b9/packages/platform-server/src/http.ts#L44\n * @param manifest - An optional `AngularAppManifest` that contains the application's routing and configuration details.\n * If not provided, the default manifest is retrieved using `getAngularAppManifest()`.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object containing:\n * - `routeTree`: A populated `RouteTree` containing all extracted routes from the Angular application.\n * - `appShellRoute`: The specified route for the app-shell, if configured.\n * - `errors`: An array of strings representing any errors encountered during the route extraction process.\n */\nexport async function extractRoutesAndCreateRouteTree(url, manifest = getAngularAppManifest(), invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const routeTree = new RouteTree();\n const document = await new ServerAssets(manifest).getIndexServerHtml().text();\n const bootstrap = await manifest.bootstrap();\n const { baseHref, appShellRoute, routes, errors } = await getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n for (const { route, ...metadata } of routes) {\n if (metadata.redirectTo !== undefined) {\n metadata.redirectTo = joinUrlParts(baseHref, metadata.redirectTo);\n }\n const fullRoute = joinUrlParts(baseHref, route);\n routeTree.insert(fullRoute, metadata);\n }\n return {\n appShellRoute,\n routeTree,\n errors,\n };\n}\n//# sourceMappingURL=ng-routes.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages a collection of hooks and provides methods to register and execute them.\n * Hooks are functions that can be invoked with specific arguments to allow modifications or enhancements.\n */\nexport class Hooks {\n /**\n * A map of hook names to arrays of hook functions.\n * Each hook name can have multiple associated functions, which are executed in sequence.\n */\n store = new Map();\n /**\n * Executes all hooks associated with the specified name, passing the given argument to each hook function.\n * The hooks are invoked sequentially, and the argument may be modified by each hook.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook whose functions will be executed.\n * @param context - The input value to be passed to each hook function. The value is mutated by each hook function.\n * @returns A promise that resolves once all hook functions have been executed.\n *\n * @example\n * ```typescript\n * const hooks = new Hooks();\n * hooks.on('html:transform:pre', async (ctx) => {\n * ctx.html = ctx.html.replace(/foo/g, 'bar');\n * return ctx.html;\n * });\n * const result = await hooks.run('html:transform:pre', { html: '<div>foo</div>' });\n * console.log(result); // '<div>bar</div>'\n * ```\n * @internal\n */\n async run(name, context) {\n const hooks = this.store.get(name);\n switch (name) {\n case 'html:transform:pre': {\n if (!hooks) {\n return context.html;\n }\n const ctx = { ...context };\n for (const hook of hooks) {\n ctx.html = await hook(ctx);\n }\n return ctx.html;\n }\n default:\n throw new Error(`Running hook \"${name}\" is not supported.`);\n }\n }\n /**\n * Registers a new hook function under the specified hook name.\n * This function should be a function that takes an argument of type `T` and returns a `string` or `Promise<string>`.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook under which the function will be registered.\n * @param handler - A function to be executed when the hook is triggered. The handler will be called with an argument\n * that may be modified by the hook functions.\n *\n * @remarks\n * - If there are existing handlers registered under the given hook name, the new handler will be added to the list.\n * - If no handlers are registered under the given hook name, a new list will be created with the handler as its first element.\n *\n * @example\n * ```typescript\n * hooks.on('html:transform:pre', async (ctx) => {\n * return ctx.html.replace(/foo/g, 'bar');\n * });\n * ```\n */\n on(name, handler) {\n const hooks = this.store.get(name);\n if (hooks) {\n hooks.push(handler);\n }\n else {\n this.store.set(name, [handler]);\n }\n }\n /**\n * Checks if there are any hooks registered under the specified name.\n *\n * @param name - The name of the hook to check.\n * @returns `true` if there are hooks registered under the specified name, otherwise `false`.\n */\n has(name) {\n return !!this.store.get(name)?.length;\n }\n}\n//# sourceMappingURL=hooks.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripIndexHtmlFromURL } from '../utils/url';\nimport { extractRoutesAndCreateRouteTree } from './ng-routes';\nimport { RouteTree } from './route-tree';\n/**\n * Manages the application's server routing logic by building and maintaining a route tree.\n *\n * This class is responsible for constructing the route tree from the Angular application\n * configuration and using it to match incoming requests to the appropriate routes.\n */\nexport class ServerRouter {\n routeTree;\n /**\n * Creates an instance of the `ServerRouter`.\n *\n * @param routeTree - An instance of `RouteTree` that holds the routing information.\n * The `RouteTree` is used to match request URLs to the appropriate route metadata.\n */\n constructor(routeTree) {\n this.routeTree = routeTree;\n }\n /**\n * Static property to track the ongoing build promise.\n */\n static #extractionPromise;\n /**\n * Creates or retrieves a `ServerRouter` instance based on the provided manifest and URL.\n *\n * If the manifest contains pre-built routes, a new `ServerRouter` is immediately created.\n * Otherwise, it builds the router by extracting routes from the Angular configuration\n * asynchronously. This method ensures that concurrent builds are prevented by re-using\n * the same promise.\n *\n * @param manifest - An instance of `AngularAppManifest` that contains the route information.\n * @param url - The URL for server-side rendering. The URL is needed to configure `ServerPlatformLocation`.\n * This is necessary to ensure that API requests for relative paths succeed, which is crucial for correct route extraction.\n * [Reference](https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51)\n * @returns A promise resolving to a `ServerRouter` instance.\n */\n static from(manifest, url) {\n if (manifest.routes) {\n const routeTree = RouteTree.fromObject(manifest.routes);\n return Promise.resolve(new ServerRouter(routeTree));\n }\n // Create and store a new promise for the build process.\n // This prevents concurrent builds by re-using the same promise.\n ServerRouter.#extractionPromise ??= extractRoutesAndCreateRouteTree(url, manifest)\n .then(({ routeTree, errors }) => {\n if (errors.length > 0) {\n throw new Error('Error(s) occurred while extracting routes:\\n' +\n errors.map((error) => `- ${error}`).join('\\n'));\n }\n return new ServerRouter(routeTree);\n })\n .finally(() => {\n ServerRouter.#extractionPromise = undefined;\n });\n return ServerRouter.#extractionPromise;\n }\n /**\n * Matches a request URL against the route tree to retrieve route metadata.\n *\n * This method strips 'index.html' from the URL if it is present and then attempts\n * to find a match in the route tree. If a match is found, it returns the associated\n * route metadata; otherwise, it returns `undefined`.\n *\n * @param url - The URL to be matched against the route tree.\n * @returns The metadata for the matched route or `undefined` if no match is found.\n */\n match(url) {\n // Strip 'index.html' from URL if present.\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const { pathname } = stripIndexHtmlFromURL(url);\n return this.routeTree.match(decodeURIComponent(pathname));\n }\n}\n//# sourceMappingURL=router.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Generates a SHA-256 hash of the provided string.\n *\n * @param data - The input string to be hashed.\n * @returns A promise that resolves to the SHA-256 hash of the input,\n * represented as a hexadecimal string.\n */\nexport async function sha256(data) {\n const encodedData = new TextEncoder().encode(data);\n const hashBuffer = await crypto.subtle.digest('SHA-256', encodedData);\n const hashParts = [];\n for (const h of new Uint8Array(hashBuffer)) {\n hashParts.push(h.toString(16).padStart(2, '0'));\n }\n return hashParts.join('');\n}\n//# sourceMappingURL=crypto.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport Beasties from '../../third_party/beasties';\n/**\n * Pattern used to extract the media query set by Beasties in an `onload` handler.\n */\nconst MEDIA_SET_HANDLER_PATTERN = /^this\\.media=[\"'](.*)[\"'];?$/;\n/**\n * Name of the attribute used to save the Beasties media query so it can be re-assigned on load.\n */\nconst CSP_MEDIA_ATTR = 'ngCspMedia';\n/**\n * Script that dynamically updates the `media` attribute of `<link>` tags based on a custom attribute (`CSP_MEDIA_ATTR`).\n *\n * NOTE:\n * We do not use `document.querySelectorAll('link').forEach((s) => s.addEventListener('load', ...)`\n * because load events are not always triggered reliably on Chrome.\n * See: https://github.com/angular/angular-cli/issues/26932 and https://crbug.com/1521256\n *\n * The script:\n * - Ensures the event target is a `<link>` tag with the `CSP_MEDIA_ATTR` attribute.\n * - Updates the `media` attribute with the value of `CSP_MEDIA_ATTR` and then removes the attribute.\n * - Removes the event listener when all relevant `<link>` tags have been processed.\n * - Uses event capturing (the `true` parameter) since load events do not bubble up the DOM.\n */\nconst LINK_LOAD_SCRIPT_CONTENT = `\n(() => {\n const CSP_MEDIA_ATTR = '${CSP_MEDIA_ATTR}';\n const documentElement = document.documentElement;\n\n // Listener for load events on link tags.\n const listener = (e) => {\n const target = e.target;\n if (\n !target ||\n target.tagName !== 'LINK' ||\n !target.hasAttribute(CSP_MEDIA_ATTR)\n ) {\n return;\n }\n\n target.media = target.getAttribute(CSP_MEDIA_ATTR);\n target.removeAttribute(CSP_MEDIA_ATTR);\n\n if (!document.head.querySelector(\\`link[\\${CSP_MEDIA_ATTR}]\\`)) {\n documentElement.removeEventListener('load', listener);\n }\n };\n\n documentElement.addEventListener('load', listener, true);\n})();`;\nclass BeastiesBase extends Beasties {\n}\n/* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */\nexport class InlineCriticalCssProcessor extends BeastiesBase {\n readFile;\n outputPath;\n addedCspScriptsDocuments = new WeakSet();\n documentNonces = new WeakMap();\n constructor(readFile, outputPath) {\n super({\n logger: {\n // eslint-disable-next-line no-console\n warn: (s) => console.warn(s),\n // eslint-disable-next-line no-console\n error: (s) => console.error(s),\n info: () => { },\n },\n logLevel: 'warn',\n path: outputPath,\n publicPath: undefined,\n compress: false,\n pruneSource: false,\n reduceInlineStyles: false,\n mergeStylesheets: false,\n // Note: if `preload` changes to anything other than `media`, the logic in\n // `embedLinkedStylesheet` will have to be updated.\n preload: 'media',\n noscriptFallback: true,\n inlineFonts: true,\n });\n this.readFile = readFile;\n this.outputPath = outputPath;\n }\n /**\n * Override of the Beasties `embedLinkedStylesheet` method\n * that makes it work with Angular's CSP APIs.\n */\n async embedLinkedStylesheet(link, document) {\n if (link.getAttribute('media') === 'print' && link.next?.name === 'noscript') {\n // Workaround for https://github.com/GoogleChromeLabs/critters/issues/64\n // NB: this is only needed for the webpack based builders.\n const media = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (media) {\n link.removeAttribute('onload');\n link.setAttribute('media', media[1]);\n link?.next?.remove();\n }\n }\n const returnValue = await super.embedLinkedStylesheet(link, document);\n const cspNonce = this.findCspNonce(document);\n if (cspNonce) {\n const beastiesMedia = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (beastiesMedia) {\n // If there's a Beasties-generated `onload` handler and the file has an Angular CSP nonce,\n // we have to remove the handler, because it's incompatible with CSP. We save the value\n // in a different attribute and we generate a script tag with the nonce that uses\n // `addEventListener` to apply the media query instead.\n link.removeAttribute('onload');\n link.setAttribute(CSP_MEDIA_ATTR, beastiesMedia[1]);\n this.conditionallyInsertCspLoadingScript(document, cspNonce, link);\n }\n // Ideally we would hook in at the time Beasties inserts the `style` tags, but there isn't\n // a way of doing that at the moment so we fall back to doing it any time a `link` tag is\n // inserted. We mitigate it by only iterating the direct children of the `<head>` which\n // should be pretty shallow.\n document.head.children.forEach((child) => {\n if (child.tagName === 'style' && !child.hasAttribute('nonce')) {\n child.setAttribute('nonce', cspNonce);\n }\n });\n }\n return returnValue;\n }\n /**\n * Finds the CSP nonce for a specific document.\n */\n findCspNonce(document) {\n if (this.documentNonces.has(document)) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this.documentNonces.get(document);\n }\n // HTML attribute are case-insensitive, but the parser used by Beasties is case-sensitive.\n const nonceElement = document.querySelector('[ngCspNonce], [ngcspnonce]');\n const cspNonce = nonceElement?.getAttribute('ngCspNonce') || nonceElement?.getAttribute('ngcspnonce') || null;\n this.documentNonces.set(document, cspNonce);\n return cspNonce;\n }\n /**\n * Inserts the `script` tag that swaps the critical CSS at runtime,\n * if one hasn't been inserted into the document already.\n */\n conditionallyInsertCspLoadingScript(document, nonce, link) {\n if (this.addedCspScriptsDocuments.has(document)) {\n return;\n }\n if (document.head.textContent.includes(LINK_LOAD_SCRIPT_CONTENT)) {\n // Script was already added during the build.\n this.addedCspScriptsDocuments.add(document);\n return;\n }\n const script = document.createElement('script');\n script.setAttribute('nonce', nonce);\n script.textContent = LINK_LOAD_SCRIPT_CONTENT;\n // Prepend the script to the head since it needs to\n // run as early as possible, before the `link` tags.\n document.head.insertBefore(script, link);\n this.addedCspScriptsDocuments.add(document);\n }\n}\n//# sourceMappingURL=inline-critical-css.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * A Least Recently Used (LRU) cache implementation.\n *\n * This cache stores a fixed number of key-value pairs, and when the cache exceeds its capacity,\n * the least recently accessed items are evicted.\n *\n * @template Key - The type of the cache keys.\n * @template Value - The type of the cache values.\n */\nexport class LRUCache {\n /**\n * The maximum number of items the cache can hold.\n */\n capacity;\n /**\n * Internal storage for the cache, mapping keys to their associated nodes in the linked list.\n */\n cache = new Map();\n /**\n * Head of the doubly linked list, representing the most recently used item.\n */\n head;\n /**\n * Tail of the doubly linked list, representing the least recently used item.\n */\n tail;\n /**\n * Creates a new LRUCache instance.\n * @param capacity The maximum number of items the cache can hold.\n */\n constructor(capacity) {\n this.capacity = capacity;\n }\n /**\n * Gets the value associated with the given key.\n * @param key The key to retrieve the value for.\n * @returns The value associated with the key, or undefined if the key is not found.\n */\n get(key) {\n const node = this.cache.get(key);\n if (node) {\n this.moveToHead(node);\n return node.value;\n }\n return undefined;\n }\n /**\n * Puts a key-value pair into the cache.\n * If the key already exists, the value is updated.\n * If the cache is full, the least recently used item is evicted.\n * @param key The key to insert or update.\n * @param value The value to associate with the key.\n */\n put(key, value) {\n const cachedNode = this.cache.get(key);\n if (cachedNode) {\n // Update existing node\n cachedNode.value = value;\n this.moveToHead(cachedNode);\n return;\n }\n // Create a new node\n const newNode = { key, value, prev: undefined, next: undefined };\n this.cache.set(key, newNode);\n this.addToHead(newNode);\n if (this.cache.size > this.capacity) {\n // Evict the LRU item\n const tail = this.removeTail();\n if (tail) {\n this.cache.delete(tail.key);\n }\n }\n }\n /**\n * Adds a node to the head of the linked list.\n * @param node The node to add.\n */\n addToHead(node) {\n node.next = this.head;\n node.prev = undefined;\n if (this.head) {\n this.head.prev = node;\n }\n this.head = node;\n if (!this.tail) {\n this.tail = node;\n }\n }\n /**\n * Removes a node from the linked list.\n * @param node The node to remove.\n */\n removeNode(node) {\n if (node.prev) {\n node.prev.next = node.next;\n }\n else {\n this.head = node.next;\n }\n if (node.next) {\n node.next.prev = node.prev;\n }\n else {\n this.tail = node.prev;\n }\n }\n /**\n * Moves a node to the head of the linked list.\n * @param node The node to move.\n */\n moveToHead(node) {\n this.removeNode(node);\n this.addToHead(node);\n }\n /**\n * Removes the tail node from the linked list.\n * @returns The removed tail node, or undefined if the list is empty.\n */\n removeTail() {\n const node = this.tail;\n if (node) {\n this.removeNode(node);\n }\n return node;\n }\n}\n//# sourceMappingURL=lru-cache.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { LOCALE_ID, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, ɵresetCompiledComponents, } from '@angular/core';\nimport { ServerAssets } from './assets';\nimport { Hooks } from './hooks';\nimport { getAngularAppManifest } from './manifest';\nimport { RenderMode } from './routes/route-config';\nimport { ServerRouter } from './routes/router';\nimport { sha256 } from './utils/crypto';\nimport { InlineCriticalCssProcessor } from './utils/inline-critical-css';\nimport { LRUCache } from './utils/lru-cache';\nimport { renderAngular } from './utils/ng';\nimport { joinUrlParts, stripIndexHtmlFromURL, stripLeadingSlash } from './utils/url';\n/**\n * Maximum number of critical CSS entries the cache can store.\n * This value determines the capacity of the LRU (Least Recently Used) cache, which stores critical CSS for pages.\n */\nconst MAX_INLINE_CSS_CACHE_ENTRIES = 50;\n/**\n * A mapping of `RenderMode` enum values to corresponding string representations.\n *\n * This record is used to map each `RenderMode` to a specific string value that represents\n * the server context. The string values are used internally to differentiate\n * between various rendering strategies when processing routes.\n *\n * - `RenderMode.Prerender` maps to `'ssg'` (Static Site Generation).\n * - `RenderMode.Server` maps to `'ssr'` (Server-Side Rendering).\n * - `RenderMode.Client` maps to an empty string `''` (Client-Side Rendering, no server context needed).\n */\nconst SERVER_CONTEXT_VALUE = {\n [RenderMode.Prerender]: 'ssg',\n [RenderMode.Server]: 'ssr',\n [RenderMode.Client]: '',\n};\n/**\n * Represents a locale-specific Angular server application managed by the server application engine.\n *\n * The `AngularServerApp` class handles server-side rendering and asset management for a specific locale.\n */\nexport class AngularServerApp {\n options;\n /**\n * Whether prerendered routes should be rendered on demand or served directly.\n *\n * @see {@link AngularServerAppOptions.allowStaticRouteRender} for more details.\n */\n allowStaticRouteRender;\n /**\n * Hooks for extending or modifying server behavior.\n *\n * @see {@link AngularServerAppOptions.hooks} for more details.\n */\n hooks;\n /**\n * Constructs an instance of `AngularServerApp`.\n *\n * @param options Optional configuration options for the server application.\n */\n constructor(options = {}) {\n this.options = options;\n this.allowStaticRouteRender = this.options.allowStaticRouteRender ?? false;\n this.hooks = options.hooks ?? new Hooks();\n }\n /**\n * The manifest associated with this server application.\n */\n manifest = getAngularAppManifest();\n /**\n * An instance of ServerAsset that handles server-side asset.\n */\n assets = new ServerAssets(this.manifest);\n /**\n * The router instance used for route matching and handling.\n */\n router;\n /**\n * The `inlineCriticalCssProcessor` is responsible for handling critical CSS inlining.\n */\n inlineCriticalCssProcessor;\n /**\n * The bootstrap mechanism for the server application.\n */\n boostrap;\n /**\n * Cache for storing critical CSS for pages.\n * Stores a maximum of MAX_INLINE_CSS_CACHE_ENTRIES entries.\n *\n * Uses an LRU (Least Recently Used) eviction policy, meaning that when the cache is full,\n * the least recently accessed page's critical CSS will be removed to make space for new entries.\n */\n criticalCssLRUCache = new LRUCache(MAX_INLINE_CSS_CACHE_ENTRIES);\n /**\n * Handles an incoming HTTP request by serving prerendered content, performing server-side rendering,\n * or delivering a static file for client-side rendered routes based on the `RenderMode` setting.\n *\n * @param request - The HTTP request to handle.\n * @param requestContext - Optional context for rendering, such as metadata associated with the request.\n * @returns A promise that resolves to the resulting HTTP response object, or `null` if no matching Angular route is found.\n *\n * @remarks A request to `https://www.example.com/page/index.html` will serve or render the Angular route\n * corresponding to `https://www.example.com/page`.\n */\n async handle(request, requestContext) {\n const url = new URL(request.url);\n this.router ??= await ServerRouter.from(this.manifest, url);\n const matchedRoute = this.router.match(url);\n if (!matchedRoute) {\n // Not a known Angular route.\n return null;\n }\n const { redirectTo, status, renderMode } = matchedRoute;\n if (redirectTo !== undefined) {\n // Note: The status code is validated during route extraction.\n // 302 Found is used by default for redirections\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return Response.redirect(new URL(redirectTo, url), status ?? 302);\n }\n if (renderMode === RenderMode.Prerender) {\n const response = await this.handleServe(request, matchedRoute);\n if (response) {\n return response;\n }\n }\n return Promise.race([\n this.waitForRequestAbort(request),\n this.handleRendering(request, matchedRoute, requestContext),\n ]);\n }\n /**\n * Handles serving a prerendered static asset if available for the matched route.\n *\n * This method only supports `GET` and `HEAD` requests.\n *\n * @param request - The incoming HTTP request for serving a static page.\n * @param matchedRoute - The metadata of the matched route for rendering.\n * If not provided, the method attempts to find a matching route based on the request URL.\n * @returns A promise that resolves to a `Response` object if the prerendered page is found, or `null`.\n */\n async handleServe(request, matchedRoute) {\n const { headers, renderMode } = matchedRoute;\n if (renderMode !== RenderMode.Prerender) {\n return null;\n }\n const { method } = request;\n if (method !== 'GET' && method !== 'HEAD') {\n return null;\n }\n const { pathname } = stripIndexHtmlFromURL(new URL(request.url));\n const assetPath = stripLeadingSlash(joinUrlParts(pathname, 'index.html'));\n if (!this.assets.hasServerAsset(assetPath)) {\n return null;\n }\n const { text, hash, size } = this.assets.getServerAsset(assetPath);\n const etag = `\"${hash}\"`;\n return request.headers.get('if-none-match') === etag\n ? new Response(undefined, { status: 304, statusText: 'Not Modified' })\n : new Response(await text(), {\n headers: {\n 'Content-Length': size.toString(),\n 'ETag': etag,\n 'Content-Type': 'text/html;charset=UTF-8',\n ...headers,\n },\n });\n }\n /**\n * Handles the server-side rendering process for the given HTTP request.\n * This method matches the request URL to a route and performs rendering if a matching route is found.\n *\n * @param request - The incoming HTTP request to be processed.\n * @param matchedRoute - The metadata of the matched route for rendering.\n * If not provided, the method attempts to find a matching route based on the request URL.\n * @param requestContext - Optional additional context for rendering, such as request metadata.\n *\n * @returns A promise that resolves to the rendered response, or null if no matching route is found.\n */\n async handleRendering(request, matchedRoute, requestContext) {\n const { redirectTo, status } = matchedRoute;\n if (redirectTo !== undefined) {\n // Note: The status code is validated during route extraction.\n // 302 Found is used by default for redirections\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return Response.redirect(new URL(redirectTo, new URL(request.url)), status ?? 302);\n }\n const { renderMode, headers } = matchedRoute;\n if (!this.allowStaticRouteRender && renderMode === RenderMode.Prerender) {\n return null;\n }\n const platformProviders = [];\n // Initialize the response with status and headers if available.\n const responseInit = {\n status,\n headers: new Headers({\n 'Content-Type': 'text/html;charset=UTF-8',\n ...headers,\n }),\n };\n if (renderMode === RenderMode.Server) {\n // Configure platform providers for request and response only for SSR.\n platformProviders.push({\n provide: REQUEST,\n useValue: request,\n }, {\n provide: REQUEST_CONTEXT,\n useValue: requestContext,\n }, {\n provide: RESPONSE_INIT,\n useValue: responseInit,\n });\n }\n else if (renderMode === RenderMode.Client) {\n // Serve the client-side rendered version if the route is configured for CSR.\n return new Response(await this.assets.getServerAsset('index.csr.html').text(), responseInit);\n }\n const { manifest: { bootstrap, inlineCriticalCss, locale }, hooks, assets, } = this;\n if (locale !== undefined) {\n platformProviders.push({\n provide: LOCALE_ID,\n useValue: locale,\n });\n }\n const url = new URL(request.url);\n let html = await assets.getIndexServerHtml().text();\n // Skip extra microtask if there are no pre hooks.\n if (hooks.has('html:transform:pre')) {\n html = await hooks.run('html:transform:pre', { html, url });\n }\n this.boostrap ??= await bootstrap();\n html = await renderAngular(html, this.boostrap, url, platformProviders, SERVER_CONTEXT_VALUE[renderMode]);\n if (inlineCriticalCss) {\n // Optionally inline critical CSS.\n this.inlineCriticalCssProcessor ??= new InlineCriticalCssProcessor((path) => {\n const fileName = path.split('/').pop() ?? path;\n return this.assets.getServerAsset(fileName).text();\n });\n // TODO(alanagius): remove once Node.js version 18 is no longer supported.\n if (renderMode === RenderMode.Server && typeof crypto === 'undefined') {\n // eslint-disable-next-line no-console\n console.error(`The global 'crypto' module is unavailable. ` +\n `If you are running on Node.js, please ensure you are using version 20 or later, ` +\n `which includes built-in support for the Web Crypto module.`);\n }\n if (renderMode === RenderMode.Server && typeof crypto !== 'undefined') {\n // Only cache if we are running in SSR Mode.\n const cacheKey = await sha256(html);\n let htmlWithCriticalCss = this.criticalCssLRUCache.get(cacheKey);\n if (htmlWithCriticalCss === undefined) {\n htmlWithCriticalCss = await this.inlineCriticalCssProcessor.process(html);\n this.criticalCssLRUCache.put(cacheKey, htmlWithCriticalCss);\n }\n html = htmlWithCriticalCss;\n }\n else {\n html = await this.inlineCriticalCssProcessor.process(html);\n }\n }\n return new Response(html, responseInit);\n }\n /**\n * Returns a promise that rejects if the request is aborted.\n *\n * @param request - The HTTP request object being monitored for abortion.\n * @returns A promise that never resolves and rejects with an `AbortError`\n * if the request is aborted.\n */\n waitForRequestAbort(request) {\n return new Promise((_, reject) => {\n request.signal.addEventListener('abort', () => {\n const abortError = new Error(`Request for: ${request.url} was aborted.\\n${request.signal.reason}`);\n abortError.name = 'AbortError';\n reject(abortError);\n }, { once: true });\n });\n }\n}\nlet angularServerApp;\n/**\n * Retrieves or creates an instance of `AngularServerApp`.\n * - If an instance of `AngularServerApp` already exists, it will return the existing one.\n * - If no instance exists, it will create a new one with the provided options.\n *\n * @param options Optional configuration options for the server application.\n *\n * @returns The existing or newly created instance of `AngularServerApp`.\n */\nexport function getOrCreateAngularServerApp(options) {\n return (angularServerApp ??= new AngularServerApp(options));\n}\n/**\n * Destroys the existing `AngularServerApp` instance, releasing associated resources and resetting the\n * reference to `undefined`.\n *\n * This function is primarily used to enable the recreation of the `AngularServerApp` instance,\n * typically when server configuration or application state needs to be refreshed.\n */\nexport function destroyAngularServerApp() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Need to clean up GENERATED_COMP_IDS map in `@angular/core`.\n // Otherwise an incorrect component ID generation collision detected warning will be displayed in development.\n // See: https://github.com/angular/angular-cli/issues/25924\n ɵresetCompiledComponents();\n }\n angularServerApp = undefined;\n}\n//# sourceMappingURL=app.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n// ɵgetRoutesFromAngularRouterConfig is only used by the Webpack based server builder.\nexport { getRoutesFromAngularRouterConfig as ɵgetRoutesFromAngularRouterConfig, extractRoutesAndCreateRouteTree as ɵextractRoutesAndCreateRouteTree, } from './src/routes/ng-routes';\nexport { getOrCreateAngularServerApp as ɵgetOrCreateAngularServerApp, destroyAngularServerApp as ɵdestroyAngularServerApp, } from './src/app';\nexport { setAngularAppManifest as ɵsetAngularAppManifest, setAngularAppEngineManifest as ɵsetAngularAppEngineManifest, } from './src/manifest';\nexport { InlineCriticalCssProcessor as ɵInlineCriticalCssProcessor } from './src/utils/inline-critical-css';\n//# sourceMappingURL=private_export.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Extracts a potential locale ID from a given URL based on the specified base path.\n *\n * This function parses the URL to locate a potential locale identifier that immediately\n * follows the base path segment in the URL's pathname. If the URL does not contain a valid\n * locale ID, an empty string is returned.\n *\n * @param url - The full URL from which to extract the locale ID.\n * @param basePath - The base path used as the reference point for extracting the locale ID.\n * @returns The extracted locale ID if present, or an empty string if no valid locale ID is found.\n *\n * @example\n * ```js\n * const url = new URL('https://example.com/base/en/page');\n * const basePath = '/base';\n * const localeId = getPotentialLocaleIdFromUrl(url, basePath);\n * console.log(localeId); // Output: 'en'\n * ```\n */\nexport function getPotentialLocaleIdFromUrl(url, basePath) {\n const { pathname } = url;\n // Move forward of the base path section.\n let start = basePath.length;\n if (pathname[start] === '/') {\n start++;\n }\n // Find the next forward slash.\n let end = pathname.indexOf('/', start);\n if (end === -1) {\n end = pathname.length;\n }\n // Extract the potential locale id.\n return pathname.slice(start, end);\n}\n//# sourceMappingURL=i18n.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { Hooks } from './hooks';\nimport { getPotentialLocaleIdFromUrl } from './i18n';\nimport { getAngularAppEngineManifest } from './manifest';\n/**\n * Angular server application engine.\n * Manages Angular server applications (including localized ones), handles rendering requests,\n * and optionally transforms index HTML before rendering.\n *\n * @remarks This class should be instantiated once and used as a singleton across the server-side\n * application to ensure consistent handling of rendering requests and resource management.\n *\n * @developerPreview\n */\nexport class AngularAppEngine {\n /**\n * A flag to enable or disable the rendering of prerendered routes.\n *\n * Typically used during development to avoid prerendering all routes ahead of time,\n * allowing them to be rendered on the fly as requested.\n *\n * @private\n */\n static ɵallowStaticRouteRender = false;\n /**\n * Hooks for extending or modifying the behavior of the server application.\n * These hooks are used by the Angular CLI when running the development server and\n * provide extensibility points for the application lifecycle.\n *\n * @private\n */\n static ɵhooks = /* #__PURE__*/ new Hooks();\n /**\n * The manifest for the server application.\n */\n manifest = getAngularAppEngineManifest();\n /**\n * A cache that holds entry points, keyed by their potential locale string.\n */\n entryPointsCache = new Map();\n /**\n * Handles an incoming HTTP request by serving prerendered content, performing server-side rendering,\n * or delivering a static file for client-side rendered routes based on the `RenderMode` setting.\n *\n * @param request - The HTTP request to handle.\n * @param requestContext - Optional context for rendering, such as metadata associated with the request.\n * @returns A promise that resolves to the resulting HTTP response object, or `null` if no matching Angular route is found.\n *\n * @remarks A request to `https://www.example.com/page/index.html` will serve or render the Angular route\n * corresponding to `https://www.example.com/page`.\n */\n async handle(request, requestContext) {\n const serverApp = await this.getAngularServerAppForRequest(request);\n return serverApp ? serverApp.handle(request, requestContext) : null;\n }\n /**\n * Retrieves the Angular server application instance for a given request.\n *\n * This method checks if the request URL corresponds to an Angular application entry point.\n * If so, it initializes or retrieves an instance of the Angular server application for that entry point.\n * Requests that resemble file requests (except for `/index.html`) are skipped.\n *\n * @param request - The incoming HTTP request object.\n * @returns A promise that resolves to an `AngularServerApp` instance if a valid entry point is found,\n * or `null` if no entry point matches the request URL.\n */\n async getAngularServerAppForRequest(request) {\n // Skip if the request looks like a file but not `/index.html`.\n const url = new URL(request.url);\n const entryPoint = await this.getEntryPointExportsForUrl(url);\n if (!entryPoint) {\n return null;\n }\n // Note: Using `instanceof` is not feasible here because `AngularServerApp` will\n // be located in separate bundles, making `instanceof` checks unreliable.\n const ɵgetOrCreateAngularServerApp = entryPoint.ɵgetOrCreateAngularServerApp;\n const serverApp = ɵgetOrCreateAngularServerApp({\n allowStaticRouteRender: AngularAppEngine.ɵallowStaticRouteRender,\n hooks: AngularAppEngine.ɵhooks,\n });\n return serverApp;\n }\n /**\n * Retrieves the exports for a specific entry point, caching the result.\n *\n * @param potentialLocale - The locale string used to find the corresponding entry point.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExports(potentialLocale) {\n const cachedEntryPoint = this.entryPointsCache.get(potentialLocale);\n if (cachedEntryPoint) {\n return cachedEntryPoint;\n }\n const { entryPoints } = this.manifest;\n const entryPoint = entryPoints.get(potentialLocale);\n if (!entryPoint) {\n return undefined;\n }\n const entryPointExports = entryPoint();\n this.entryPointsCache.set(potentialLocale, entryPointExports);\n return entryPointExports;\n }\n /**\n * Retrieves the entry point for a given URL by determining the locale and mapping it to\n * the appropriate application bundle.\n *\n * This method determines the appropriate entry point and locale for rendering the application by examining the URL.\n * If there is only one entry point available, it is returned regardless of the URL.\n * Otherwise, the method extracts a potential locale identifier from the URL and looks up the corresponding entry point.\n *\n * @param url - The URL of the request.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExportsForUrl(url) {\n const { entryPoints, basePath } = this.manifest;\n if (entryPoints.size === 1) {\n return this.getEntryPointExports('');\n }\n const potentialLocale = getPotentialLocaleIdFromUrl(url, basePath);\n return this.getEntryPointExports(potentialLocale);\n }\n}\n//# sourceMappingURL=app-engine.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Annotates a request handler function with metadata, marking it as a special\n * handler.\n *\n * @param handler - The request handler function to be annotated.\n * @returns The same handler function passed in, with metadata attached.\n *\n * @example\n * Example usage in a Hono application:\n * ```ts\n * const app = new Hono();\n * export default createRequestHandler(app.fetch);\n * ```\n *\n * @example\n * Example usage in a H3 application:\n * ```ts\n * const app = createApp();\n * const handler = toWebHandler(app);\n * export default createRequestHandler(handler);\n * ```\n * @developerPreview\n */\nexport function createRequestHandler(handler) {\n handler['__ng_request_handler__'] = true;\n return handler;\n}\n//# sourceMappingURL=handler.js.map"],"names":["ɵConsole","SERVER_CONTEXT","loadChildrenHelper","whenStable","ɵresetCompiledComponents"],"mappings":";;;;;;AAOA;AACA;AACA;AACO,MAAM,YAAY,CAAC;AAC1B,IAAI,QAAQ;AACZ;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,IAAI,CAAC,QAAQ,GAAG,QAAQ;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,cAAc,CAAC,IAAI,EAAE;AACzB,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AACpD,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,cAAc,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;AACrE;AACA,QAAQ,OAAO,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,cAAc,CAAC,IAAI,EAAE;AACzB,QAAQ,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,kBAAk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E;AACpC,YAAY,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;AAChD;AACA,QAAQ,MAAM,eAAe,GAAG,2BAA2B,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC1E,QAAQ,OAAO,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC;AACzD;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,OAAO,EAAE;AAC9C,IAAI,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI;AAC5C,IAAI,OAAO,OAAO;AAClB;;;;"}
|
|
1
|
+
{"version":3,"file":"ssr.mjs","sources":["../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/assets.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/console.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/manifest.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/url.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/ng.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-config.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-tree.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/ng-routes.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/hooks.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/router.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/crypto.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/inline-critical-css.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/lru-cache.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/private_export.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/i18n.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app-engine.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/handler.mjs"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages server-side assets.\n */\nexport class ServerAssets {\n manifest;\n /**\n * Creates an instance of ServerAsset.\n *\n * @param manifest - The manifest containing the server assets.\n */\n constructor(manifest) {\n this.manifest = manifest;\n }\n /**\n * Retrieves the content of a server-side asset using its path.\n *\n * @param path - The path to the server asset within the manifest.\n * @returns The server asset associated with the provided path, as a `ServerAsset` object.\n * @throws Error - Throws an error if the asset does not exist.\n */\n getServerAsset(path) {\n const asset = this.manifest.assets.get(path);\n if (!asset) {\n throw new Error(`Server asset '${path}' does not exist.`);\n }\n return asset;\n }\n /**\n * Checks if a specific server-side asset exists.\n *\n * @param path - The path to the server asset.\n * @returns A boolean indicating whether the asset exists.\n */\n hasServerAsset(path) {\n return this.manifest.assets.has(path);\n }\n /**\n * Retrieves the asset for 'index.server.html'.\n *\n * @returns The `ServerAsset` object for 'index.server.html'.\n * @throws Error - Throws an error if 'index.server.html' does not exist.\n */\n getIndexServerHtml() {\n return this.getServerAsset('index.server.html');\n }\n}\n//# sourceMappingURL=assets.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\n/**\n * Custom implementation of the Angular Console service that filters out specific log messages.\n *\n * This class extends the internal Angular `ɵConsole` class to provide customized logging behavior.\n * It overrides the `log` method to suppress logs that match certain predefined messages.\n */\nexport class Console extends ɵConsole {\n /**\n * A set of log messages that should be ignored and not printed to the console.\n */\n ignoredLogs = new Set(['Angular is running in development mode.']);\n /**\n * Logs a message to the console if it is not in the set of ignored messages.\n *\n * @param message - The message to log to the console.\n *\n * This method overrides the `log` method of the `ɵConsole` class. It checks if the\n * message is in the `ignoredLogs` set. If it is not, it delegates the logging to\n * the parent class's `log` method. Otherwise, the message is suppressed.\n */\n log(message) {\n if (!this.ignoredLogs.has(message)) {\n super.log(message);\n }\n }\n}\n//# sourceMappingURL=console.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * The Angular app manifest object.\n * This is used internally to store the current Angular app manifest.\n */\nlet angularAppManifest;\n/**\n * Sets the Angular app manifest.\n *\n * @param manifest - The manifest object to set for the Angular application.\n */\nexport function setAngularAppManifest(manifest) {\n angularAppManifest = manifest;\n}\n/**\n * Gets the Angular app manifest.\n *\n * @returns The Angular app manifest.\n * @throws Will throw an error if the Angular app manifest is not set.\n */\nexport function getAngularAppManifest() {\n if (!angularAppManifest) {\n throw new Error('Angular app manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppManifest;\n}\n/**\n * The Angular app engine manifest object.\n * This is used internally to store the current Angular app engine manifest.\n */\nlet angularAppEngineManifest;\n/**\n * Sets the Angular app engine manifest.\n *\n * @param manifest - The engine manifest object to set.\n */\nexport function setAngularAppEngineManifest(manifest) {\n angularAppEngineManifest = manifest;\n}\n/**\n * Gets the Angular app engine manifest.\n *\n * @returns The Angular app engine manifest.\n * @throws Will throw an error if the Angular app engine manifest is not set.\n */\nexport function getAngularAppEngineManifest() {\n if (!angularAppEngineManifest) {\n throw new Error('Angular app engine manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppEngineManifest;\n}\n//# sourceMappingURL=manifest.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Removes the trailing slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the trailing slash.\n * @returns The URL string without a trailing slash.\n *\n * @example\n * ```js\n * stripTrailingSlash('path/'); // 'path'\n * stripTrailingSlash('/path'); // '/path'\n * stripTrailingSlash('/'); // '/'\n * stripTrailingSlash(''); // ''\n * ```\n */\nexport function stripTrailingSlash(url) {\n // Check if the last character of the URL is a slash\n return url.length > 1 && url[url.length - 1] === '/' ? url.slice(0, -1) : url;\n}\n/**\n * Removes the leading slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the leading slash.\n * @returns The URL string without a leading slash.\n *\n * @example\n * ```js\n * stripLeadingSlash('/path'); // 'path'\n * stripLeadingSlash('/path/'); // 'path/'\n * stripLeadingSlash('/'); // '/'\n * stripLeadingSlash(''); // ''\n * ```\n */\nexport function stripLeadingSlash(url) {\n // Check if the first character of the URL is a slash\n return url.length > 1 && url[0] === '/' ? url.slice(1) : url;\n}\n/**\n * Adds a leading slash to a URL if it does not already have one.\n *\n * @param url - The URL string to which the leading slash will be added.\n * @returns The URL string with a leading slash.\n *\n * @example\n * ```js\n * addLeadingSlash('path'); // '/path'\n * addLeadingSlash('/path'); // '/path'\n * ```\n */\nexport function addLeadingSlash(url) {\n // Check if the URL already starts with a slash\n return url[0] === '/' ? url : `/${url}`;\n}\n/**\n * Joins URL parts into a single URL string.\n *\n * This function takes multiple URL segments, normalizes them by removing leading\n * and trailing slashes where appropriate, and then joins them into a single URL.\n *\n * @param parts - The parts of the URL to join. Each part can be a string with or without slashes.\n * @returns The joined URL string, with normalized slashes.\n *\n * @example\n * ```js\n * joinUrlParts('path/', '/to/resource'); // '/path/to/resource'\n * joinUrlParts('/path/', 'to/resource'); // '/path/to/resource'\n * joinUrlParts('', ''); // '/'\n * ```\n */\nexport function joinUrlParts(...parts) {\n const normalizeParts = [];\n for (const part of parts) {\n if (part === '') {\n // Skip any empty parts\n continue;\n }\n let normalizedPart = part;\n if (part[0] === '/') {\n normalizedPart = normalizedPart.slice(1);\n }\n if (part[part.length - 1] === '/') {\n normalizedPart = normalizedPart.slice(0, -1);\n }\n if (normalizedPart !== '') {\n normalizeParts.push(normalizedPart);\n }\n }\n return addLeadingSlash(normalizeParts.join('/'));\n}\n/**\n * Strips `/index.html` from the end of a URL's path, if present.\n *\n * This function is used to convert URLs pointing to an `index.html` file into their directory\n * equivalents. For example, it transforms a URL like `http://www.example.com/page/index.html`\n * into `http://www.example.com/page`.\n *\n * @param url - The URL object to process.\n * @returns A new URL object with `/index.html` removed from the path, if it was present.\n *\n * @example\n * ```typescript\n * const originalUrl = new URL('http://www.example.com/page/index.html');\n * const cleanedUrl = stripIndexHtmlFromURL(originalUrl);\n * console.log(cleanedUrl.href); // Output: 'http://www.example.com/page'\n * ```\n */\nexport function stripIndexHtmlFromURL(url) {\n if (url.pathname.endsWith('/index.html')) {\n const modifiedURL = new URL(url);\n // Remove '/index.html' from the pathname\n modifiedURL.pathname = modifiedURL.pathname.slice(0, /** '/index.html'.length */ -11);\n return modifiedURL;\n }\n return url;\n}\n//# sourceMappingURL=url.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\nimport { ɵSERVER_CONTEXT as SERVER_CONTEXT, renderApplication, renderModule, } from '@angular/platform-server';\nimport { Console } from '../console';\nimport { stripIndexHtmlFromURL } from './url';\n/**\n * Renders an Angular application or module to an HTML string.\n *\n * This function determines whether the provided `bootstrap` value is an Angular module\n * or a bootstrap function and calls the appropriate rendering method (`renderModule` or\n * `renderApplication`) based on that determination.\n *\n * @param html - The HTML string to be used as the initial document content.\n * @param bootstrap - Either an Angular module type or a function that returns a promise\n * resolving to an `ApplicationRef`.\n * @param url - The URL of the application. This is used for server-side rendering to\n * correctly handle route-based rendering.\n * @param platformProviders - An array of platform providers to be used during the\n * rendering process.\n * @param serverContext - A string representing the server context, used to provide additional\n * context or metadata during server-side rendering.\n * @returns A promise that resolves to a string containing the rendered HTML.\n */\nexport function renderAngular(html, bootstrap, url, platformProviders, serverContext) {\n const providers = [\n {\n provide: SERVER_CONTEXT,\n useValue: serverContext,\n },\n {\n // An Angular Console Provider that does not print a set of predefined logs.\n provide: ɵConsole,\n // Using `useClass` would necessitate decorating `Console` with `@Injectable`,\n // which would require switching from `ts_library` to `ng_module`. This change\n // would also necessitate various patches of `@angular/bazel` to support ESM.\n useFactory: () => new Console(),\n },\n ...platformProviders,\n ];\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const urlToRender = stripIndexHtmlFromURL(url).toString();\n return isNgModule(bootstrap)\n ? renderModule(bootstrap, {\n url: urlToRender,\n document: html,\n extraProviders: providers,\n })\n : renderApplication(bootstrap, {\n url: urlToRender,\n document: html,\n platformProviders: providers,\n });\n}\n/**\n * Type guard to determine if a given value is an Angular module.\n * Angular modules are identified by the presence of the `ɵmod` static property.\n * This function helps distinguish between Angular modules and bootstrap functions.\n *\n * @param value - The value to be checked.\n * @returns True if the value is an Angular module (i.e., it has the `ɵmod` property), false otherwise.\n */\nexport function isNgModule(value) {\n return 'ɵmod' in value;\n}\n//# sourceMappingURL=ng.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { InjectionToken, makeEnvironmentProviders } from '@angular/core';\n/**\n * Different rendering modes for server routes.\n * @see {@link provideServerRoutesConfig}\n * @see {@link ServerRoute}\n * @developerPreview\n */\nexport var RenderMode;\n(function (RenderMode) {\n /** Server-Side Rendering (SSR) mode, where content is rendered on the server for each request. */\n RenderMode[RenderMode[\"Server\"] = 0] = \"Server\";\n /** Client-Side Rendering (CSR) mode, where content is rendered on the client side in the browser. */\n RenderMode[RenderMode[\"Client\"] = 1] = \"Client\";\n /** Static Site Generation (SSG) mode, where content is pre-rendered at build time and served as static files. */\n RenderMode[RenderMode[\"Prerender\"] = 2] = \"Prerender\";\n})(RenderMode || (RenderMode = {}));\n/**\n * Defines the fallback strategies for Static Site Generation (SSG) routes when a pre-rendered path is not available.\n * This is particularly relevant for routes with parameterized URLs where some paths might not be pre-rendered at build time.\n * @see {@link ServerRoutePrerenderWithParams}\n * @developerPreview\n */\nexport var PrerenderFallback;\n(function (PrerenderFallback) {\n /**\n * Fallback to Server-Side Rendering (SSR) if the pre-rendered path is not available.\n * This strategy dynamically generates the page on the server at request time.\n */\n PrerenderFallback[PrerenderFallback[\"Server\"] = 0] = \"Server\";\n /**\n * Fallback to Client-Side Rendering (CSR) if the pre-rendered path is not available.\n * This strategy allows the page to be rendered on the client side.\n */\n PrerenderFallback[PrerenderFallback[\"Client\"] = 1] = \"Client\";\n /**\n * No fallback; if the path is not pre-rendered, the server will not handle the request.\n * This means the application will not provide any response for paths that are not pre-rendered.\n */\n PrerenderFallback[PrerenderFallback[\"None\"] = 2] = \"None\";\n})(PrerenderFallback || (PrerenderFallback = {}));\n/**\n * Token for providing the server routes configuration.\n * @internal\n */\nexport const SERVER_ROUTES_CONFIG = new InjectionToken('SERVER_ROUTES_CONFIG');\n/**\n/**\n * Sets up the necessary providers for configuring server routes.\n * This function accepts an array of server routes and optional configuration\n * options, returning an `EnvironmentProviders` object that encapsulates\n * the server routes and configuration settings.\n *\n * @param routes - An array of server routes to be provided.\n * @param options - (Optional) An object containing additional configuration options for server routes.\n * @returns An `EnvironmentProviders` instance with the server routes configuration.\n *\n * @returns An `EnvironmentProviders` object that contains the server routes configuration.\n *\n * @see {@link ServerRoute}\n * @see {@link ServerRoutesConfigOptions}\n * @developerPreview\n */\nexport function provideServerRoutesConfig(routes, options) {\n if (typeof ngServerMode === 'undefined' || !ngServerMode) {\n throw new Error(`The 'provideServerRoutesConfig' function should not be invoked within the browser portion of the application.`);\n }\n return makeEnvironmentProviders([\n {\n provide: SERVER_ROUTES_CONFIG,\n useValue: { routes, ...options },\n },\n ]);\n}\n//# sourceMappingURL=route-config.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripTrailingSlash } from '../utils/url';\n/**\n * A route tree implementation that supports efficient route matching, including support for wildcard routes.\n * This structure is useful for organizing and retrieving routes in a hierarchical manner,\n * enabling complex routing scenarios with nested paths.\n *\n * @typeParam AdditionalMetadata - Type of additional metadata that can be associated with route nodes.\n */\nexport class RouteTree {\n /**\n * The root node of the route tree.\n * All routes are stored and accessed relative to this root node.\n */\n root = this.createEmptyRouteTreeNode('');\n /**\n * A counter that tracks the order of route insertion.\n * This ensures that routes are matched in the order they were defined,\n * with earlier routes taking precedence.\n */\n insertionIndexCounter = 0;\n /**\n * Inserts a new route into the route tree.\n * The route is broken down into segments, and each segment is added to the tree.\n * Parameterized segments (e.g., :id) are normalized to wildcards (*) for matching purposes.\n *\n * @param route - The route path to insert into the tree.\n * @param metadata - Metadata associated with the route, excluding the route path itself.\n */\n insert(route, metadata) {\n let node = this.root;\n const segments = this.getPathSegments(route);\n for (const segment of segments) {\n // Replace parameterized segments (e.g., :id) with a wildcard (*) for matching\n const normalizedSegment = segment[0] === ':' ? '*' : segment;\n let childNode = node.children.get(normalizedSegment);\n if (!childNode) {\n childNode = this.createEmptyRouteTreeNode(normalizedSegment);\n node.children.set(normalizedSegment, childNode);\n }\n node = childNode;\n }\n // At the leaf node, store the full route and its associated metadata\n node.metadata = {\n ...metadata,\n route: segments.join('/'),\n };\n node.insertionIndex = this.insertionIndexCounter++;\n }\n /**\n * Matches a given route against the route tree and returns the best matching route's metadata.\n * The best match is determined by the lowest insertion index, meaning the earliest defined route\n * takes precedence.\n *\n * @param route - The route path to match against the route tree.\n * @returns The metadata of the best matching route or `undefined` if no match is found.\n */\n match(route) {\n const segments = this.getPathSegments(route);\n return this.traverseBySegments(segments)?.metadata;\n }\n /**\n * Converts the route tree into a serialized format representation.\n * This method converts the route tree into an array of metadata objects that describe the structure of the tree.\n * The array represents the routes in a nested manner where each entry includes the route and its associated metadata.\n *\n * @returns An array of `RouteTreeNodeMetadata` objects representing the route tree structure.\n * Each object includes the `route` and associated metadata of a route.\n */\n toObject() {\n return Array.from(this.traverse());\n }\n /**\n * Constructs a `RouteTree` from an object representation.\n * This method is used to recreate a `RouteTree` instance from an array of metadata objects.\n * The array should be in the format produced by `toObject`, allowing for the reconstruction of the route tree\n * with the same routes and metadata.\n *\n * @param value - An array of `RouteTreeNodeMetadata` objects that represent the serialized format of the route tree.\n * Each object should include a `route` and its associated metadata.\n * @returns A new `RouteTree` instance constructed from the provided metadata objects.\n */\n static fromObject(value) {\n const tree = new RouteTree();\n for (const { route, ...metadata } of value) {\n tree.insert(route, metadata);\n }\n return tree;\n }\n /**\n * A generator function that recursively traverses the route tree and yields the metadata of each node.\n * This allows for easy and efficient iteration over all nodes in the tree.\n *\n * @param node - The current node to start the traversal from. Defaults to the root node of the tree.\n */\n *traverse(node = this.root) {\n if (node.metadata) {\n yield node.metadata;\n }\n for (const childNode of node.children.values()) {\n yield* this.traverse(childNode);\n }\n }\n /**\n * Extracts the path segments from a given route string.\n *\n * @param route - The route string from which to extract segments.\n * @returns An array of path segments.\n */\n getPathSegments(route) {\n return stripTrailingSlash(route).split('/');\n }\n /**\n * Recursively traverses the route tree from a given node, attempting to match the remaining route segments.\n * If the node is a leaf node (no more segments to match) and contains metadata, the node is yielded.\n *\n * This function prioritizes exact segment matches first, followed by wildcard matches (`*`),\n * and finally deep wildcard matches (`**`) that consume all segments.\n *\n * @param remainingSegments - The remaining segments of the route path to match.\n * @param node - The current node in the route tree to start traversal from.\n *\n * @returns The node that best matches the remaining segments or `undefined` if no match is found.\n */\n traverseBySegments(remainingSegments, node = this.root) {\n const { metadata, children } = node;\n // If there are no remaining segments and the node has metadata, return this node\n if (!remainingSegments?.length) {\n if (metadata) {\n return node;\n }\n return;\n }\n // If the node has no children, end the traversal\n if (!children.size) {\n return;\n }\n const [segment, ...restSegments] = remainingSegments;\n let currentBestMatchNode;\n // 1. Exact segment match\n const exactMatchNode = node.children.get(segment);\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, exactMatchNode));\n // 2. Wildcard segment match (`*`)\n const wildcardNode = node.children.get('*');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, wildcardNode));\n // 3. Deep wildcard segment match (`**`)\n const deepWildcardNode = node.children.get('**');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, deepWildcardNode);\n return currentBestMatchNode;\n }\n /**\n * Compares two nodes and returns the node with higher priority based on insertion index.\n * A node with a lower insertion index is prioritized as it was defined earlier.\n *\n * @param currentBestMatchNode - The current best match node.\n * @param candidateNode - The node being evaluated for higher priority based on insertion index.\n * @returns The node with higher priority (i.e., lower insertion index). If one of the nodes is `undefined`, the other node is returned.\n */\n getHigherPriorityNode(currentBestMatchNode, candidateNode) {\n if (!candidateNode) {\n return currentBestMatchNode;\n }\n if (!currentBestMatchNode) {\n return candidateNode;\n }\n return candidateNode.insertionIndex < currentBestMatchNode.insertionIndex\n ? candidateNode\n : currentBestMatchNode;\n }\n /**\n * Creates an empty route tree node with the specified segment.\n * This helper function is used during the tree construction.\n *\n * @param segment - The route segment that this node represents.\n * @returns A new, empty route tree node.\n */\n createEmptyRouteTreeNode(segment) {\n return {\n segment,\n insertionIndex: -1,\n children: new Map(),\n };\n }\n}\n//# sourceMappingURL=route-tree.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { APP_BASE_HREF, PlatformLocation } from '@angular/common';\nimport { ApplicationRef, Compiler, runInInjectionContext, ɵwhenStable as whenStable, ɵConsole, } from '@angular/core';\nimport { INITIAL_CONFIG, platformServer } from '@angular/platform-server';\nimport { Router, ɵloadChildren as loadChildrenHelper } from '@angular/router';\nimport { ServerAssets } from '../assets';\nimport { Console } from '../console';\nimport { getAngularAppManifest } from '../manifest';\nimport { isNgModule } from '../utils/ng';\nimport { joinUrlParts, stripLeadingSlash } from '../utils/url';\nimport { PrerenderFallback, RenderMode, SERVER_ROUTES_CONFIG, } from './route-config';\nimport { RouteTree } from './route-tree';\n/**\n * Regular expression to match segments preceded by a colon in a string.\n */\nconst URL_PARAMETER_REGEXP = /(?<!\\\\):([^/]+)/g;\n/**\n * An set of HTTP status codes that are considered valid for redirect responses.\n */\nconst VALID_REDIRECT_RESPONSE_CODES = new Set([301, 302, 303, 307, 308]);\n/**\n * Traverses an array of route configurations to generate route tree node metadata.\n *\n * This function processes each route and its children, handling redirects, SSG (Static Site Generation) settings,\n * and lazy-loaded routes. It yields route metadata for each route and its potential variants.\n *\n * @param options - The configuration options for traversing routes.\n * @returns An async iterable iterator yielding either route tree node metadata or an error object with an error message.\n */\nasync function* traverseRoutesConfig(options) {\n const { routes, compiler, parentInjector, parentRoute, serverConfigRouteTree, invokeGetPrerenderParams, includePrerenderFallbackRoutes, } = options;\n for (const route of routes) {\n try {\n const { path = '', redirectTo, loadChildren, children } = route;\n const currentRoutePath = joinUrlParts(parentRoute, path);\n // Get route metadata from the server config route tree, if available\n let matchedMetaData;\n if (serverConfigRouteTree) {\n matchedMetaData = serverConfigRouteTree.match(currentRoutePath);\n if (!matchedMetaData) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route does not match any route defined in the server routing configuration. ` +\n 'Please ensure this route is added to the server routing configuration.',\n };\n continue;\n }\n matchedMetaData.presentInClientRouter = true;\n }\n const metadata = {\n renderMode: RenderMode.Prerender,\n ...matchedMetaData,\n route: currentRoutePath,\n };\n delete metadata.presentInClientRouter;\n // Handle redirects\n if (typeof redirectTo === 'string') {\n const redirectToResolved = resolveRedirectTo(currentRoutePath, redirectTo);\n if (metadata.status && !VALID_REDIRECT_RESPONSE_CODES.has(metadata.status)) {\n yield {\n error: `The '${metadata.status}' status code is not a valid redirect response code. ` +\n `Please use one of the following redirect response codes: ${[...VALID_REDIRECT_RESPONSE_CODES.values()].join(', ')}.`,\n };\n continue;\n }\n yield { ...metadata, redirectTo: redirectToResolved };\n }\n else if (metadata.renderMode === RenderMode.Prerender) {\n // Handle SSG routes\n yield* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n }\n else {\n yield metadata;\n }\n // Recursively process child routes\n if (children?.length) {\n yield* traverseRoutesConfig({\n ...options,\n routes: children,\n parentRoute: currentRoutePath,\n });\n }\n // Load and process lazy-loaded child routes\n if (loadChildren) {\n const loadedChildRoutes = await loadChildrenHelper(route, compiler, parentInjector).toPromise();\n if (loadedChildRoutes) {\n const { routes: childRoutes, injector = parentInjector } = loadedChildRoutes;\n yield* traverseRoutesConfig({\n ...options,\n routes: childRoutes,\n parentInjector: injector,\n parentRoute: currentRoutePath,\n });\n }\n }\n }\n catch (error) {\n yield {\n error: `Error processing route '${stripLeadingSlash(route.path ?? '')}': ${error.message}`,\n };\n }\n }\n}\n/**\n * Handles SSG (Static Site Generation) routes by invoking `getPrerenderParams` and yielding\n * all parameterized paths, returning any errors encountered.\n *\n * @param metadata - The metadata associated with the route tree node.\n * @param parentInjector - The dependency injection container for the parent route.\n * @param invokeGetPrerenderParams - A flag indicating whether to invoke the `getPrerenderParams` function.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result.\n * @returns An async iterable iterator that yields route tree node metadata for each SSG path or errors.\n */\nasync function* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes) {\n if (metadata.renderMode !== RenderMode.Prerender) {\n throw new Error(`'handleSSGRoute' was called for a route which rendering mode is not prerender.`);\n }\n const { route: currentRoutePath, fallback, ...meta } = metadata;\n const getPrerenderParams = 'getPrerenderParams' in meta ? meta.getPrerenderParams : undefined;\n if ('getPrerenderParams' in meta) {\n delete meta['getPrerenderParams'];\n }\n if (!URL_PARAMETER_REGEXP.test(currentRoutePath)) {\n // Route has no parameters\n yield {\n ...meta,\n route: currentRoutePath,\n };\n return;\n }\n if (invokeGetPrerenderParams) {\n if (!getPrerenderParams) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route uses prerendering and includes parameters, but 'getPrerenderParams' ` +\n `is missing. Please define 'getPrerenderParams' function for this route in your server routing configuration ` +\n `or specify a different 'renderMode'.`,\n };\n return;\n }\n const parameters = await runInInjectionContext(parentInjector, () => getPrerenderParams());\n try {\n for (const params of parameters) {\n const routeWithResolvedParams = currentRoutePath.replace(URL_PARAMETER_REGEXP, (match) => {\n const parameterName = match.slice(1);\n const value = params[parameterName];\n if (typeof value !== 'string') {\n throw new Error(`The 'getPrerenderParams' function defined for the '${stripLeadingSlash(currentRoutePath)}' route ` +\n `returned a non-string value for parameter '${parameterName}'. ` +\n `Please make sure the 'getPrerenderParams' function returns values for all parameters ` +\n 'specified in this route.');\n }\n return value;\n });\n yield { ...meta, route: routeWithResolvedParams };\n }\n }\n catch (error) {\n yield { error: `${error.message}` };\n return;\n }\n }\n // Handle fallback render modes\n if (includePrerenderFallbackRoutes &&\n (fallback !== PrerenderFallback.None || !invokeGetPrerenderParams)) {\n yield {\n ...meta,\n route: currentRoutePath,\n renderMode: fallback === PrerenderFallback.Client ? RenderMode.Client : RenderMode.Server,\n };\n }\n}\n/**\n * Resolves the `redirectTo` property for a given route.\n *\n * This function processes the `redirectTo` property to ensure that it correctly\n * resolves relative to the current route path. If `redirectTo` is an absolute path,\n * it is returned as is. If it is a relative path, it is resolved based on the current route path.\n *\n * @param routePath - The current route path.\n * @param redirectTo - The target path for redirection.\n * @returns The resolved redirect path as a string.\n */\nfunction resolveRedirectTo(routePath, redirectTo) {\n if (redirectTo[0] === '/') {\n // If the redirectTo path is absolute, return it as is.\n return redirectTo;\n }\n // Resolve relative redirectTo based on the current route path.\n const segments = routePath.split('/');\n segments.pop(); // Remove the last segment to make it relative.\n return joinUrlParts(...segments, redirectTo);\n}\n/**\n * Builds a server configuration route tree from the given server routes configuration.\n *\n * @param serverRoutesConfig - The server routes to be used for configuration.\n\n * @returns An object containing:\n * - `serverConfigRouteTree`: A populated `RouteTree` instance, which organizes the server routes\n * along with their additional metadata.\n * - `errors`: An array of strings that list any errors encountered during the route tree construction\n * process, such as invalid paths.\n */\nfunction buildServerConfigRouteTree({ routes, appShellRoute }) {\n const serverRoutes = [...routes];\n if (appShellRoute !== undefined) {\n serverRoutes.unshift({\n path: appShellRoute,\n renderMode: RenderMode.Prerender,\n });\n }\n const serverConfigRouteTree = new RouteTree();\n const errors = [];\n for (const { path, ...metadata } of serverRoutes) {\n if (path[0] === '/') {\n errors.push(`Invalid '${path}' route configuration: the path cannot start with a slash.`);\n continue;\n }\n serverConfigRouteTree.insert(path, metadata);\n }\n return { serverConfigRouteTree, errors };\n}\n/**\n * Retrieves routes from the given Angular application.\n *\n * This function initializes an Angular platform, bootstraps the application or module,\n * and retrieves routes from the Angular router configuration. It handles both module-based\n * and function-based bootstrapping. It yields the resulting routes as `RouteTreeNodeMetadata` objects or errors.\n *\n * @param bootstrap - A function that returns a promise resolving to an `ApplicationRef` or an Angular module to bootstrap.\n * @param document - The initial HTML document used for server-side rendering.\n * This document is necessary to render the application on the server.\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object of type `AngularRouterConfigResult` or errors.\n */\nexport async function getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const { protocol, host } = url;\n // Create and initialize the Angular platform for server-side rendering.\n const platformRef = platformServer([\n {\n provide: INITIAL_CONFIG,\n useValue: { document, url: `${protocol}//${host}/` },\n },\n {\n provide: ɵConsole,\n useFactory: () => new Console(),\n },\n ]);\n try {\n let applicationRef;\n if (isNgModule(bootstrap)) {\n const moduleRef = await platformRef.bootstrapModule(bootstrap);\n applicationRef = moduleRef.injector.get(ApplicationRef);\n }\n else {\n applicationRef = await bootstrap();\n }\n // Wait until the application is stable.\n await whenStable(applicationRef);\n const injector = applicationRef.injector;\n const router = injector.get(Router);\n const routesResults = [];\n const errors = [];\n let baseHref = injector.get(APP_BASE_HREF, null, { optional: true }) ??\n injector.get(PlatformLocation).getBaseHrefFromDOM();\n if (baseHref.startsWith('./')) {\n baseHref = baseHref.slice(2);\n }\n const compiler = injector.get(Compiler);\n const serverRoutesConfig = injector.get(SERVER_ROUTES_CONFIG, null, { optional: true });\n let serverConfigRouteTree;\n if (serverRoutesConfig) {\n const result = buildServerConfigRouteTree(serverRoutesConfig);\n serverConfigRouteTree = result.serverConfigRouteTree;\n errors.push(...result.errors);\n }\n if (errors.length) {\n return {\n baseHref,\n routes: routesResults,\n errors,\n };\n }\n if (router.config.length) {\n // Retrieve all routes from the Angular router configuration.\n const traverseRoutes = traverseRoutesConfig({\n routes: router.config,\n compiler,\n parentInjector: injector,\n parentRoute: '',\n serverConfigRouteTree,\n invokeGetPrerenderParams,\n includePrerenderFallbackRoutes,\n });\n let seenAppShellRoute;\n for await (const result of traverseRoutes) {\n if ('error' in result) {\n errors.push(result.error);\n }\n else {\n routesResults.push(result);\n }\n }\n if (serverConfigRouteTree) {\n for (const { route, presentInClientRouter } of serverConfigRouteTree.traverse()) {\n if (presentInClientRouter || route === '**') {\n // Skip if matched or it's the catch-all route.\n continue;\n }\n errors.push(`The '${route}' server route does not match any routes defined in the Angular ` +\n `routing configuration (typically provided as a part of the 'provideRouter' call). ` +\n 'Please make sure that the mentioned server route is present in the Angular routing configuration.');\n }\n }\n }\n else {\n const rootRouteMetadata = serverConfigRouteTree?.match('') ?? {\n route: '',\n renderMode: RenderMode.Prerender,\n };\n routesResults.push({\n ...rootRouteMetadata,\n // Matched route might be `/*` or `/**`, which would make Angular serve all routes rather than just `/`.\n // So we limit to just `/` for the empty app router case.\n route: '',\n });\n }\n return {\n baseHref,\n routes: routesResults,\n errors,\n appShellRoute: serverRoutesConfig?.appShellRoute,\n };\n }\n finally {\n platformRef.destroy();\n }\n}\n/**\n * Asynchronously extracts routes from the Angular application configuration\n * and creates a `RouteTree` to manage server-side routing.\n *\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * See:\n * - https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51\n * - https://github.com/angular/angular/blob/6882cc7d9eed26d3caeedca027452367ba25f2b9/packages/platform-server/src/http.ts#L44\n * @param manifest - An optional `AngularAppManifest` that contains the application's routing and configuration details.\n * If not provided, the default manifest is retrieved using `getAngularAppManifest()`.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object containing:\n * - `routeTree`: A populated `RouteTree` containing all extracted routes from the Angular application.\n * - `appShellRoute`: The specified route for the app-shell, if configured.\n * - `errors`: An array of strings representing any errors encountered during the route extraction process.\n */\nexport async function extractRoutesAndCreateRouteTree(url, manifest = getAngularAppManifest(), invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const routeTree = new RouteTree();\n const document = await new ServerAssets(manifest).getIndexServerHtml().text();\n const bootstrap = await manifest.bootstrap();\n const { baseHref, appShellRoute, routes, errors } = await getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n for (const { route, ...metadata } of routes) {\n if (metadata.redirectTo !== undefined) {\n metadata.redirectTo = joinUrlParts(baseHref, metadata.redirectTo);\n }\n const fullRoute = joinUrlParts(baseHref, route);\n routeTree.insert(fullRoute, metadata);\n }\n return {\n appShellRoute,\n routeTree,\n errors,\n };\n}\n//# sourceMappingURL=ng-routes.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages a collection of hooks and provides methods to register and execute them.\n * Hooks are functions that can be invoked with specific arguments to allow modifications or enhancements.\n */\nexport class Hooks {\n /**\n * A map of hook names to arrays of hook functions.\n * Each hook name can have multiple associated functions, which are executed in sequence.\n */\n store = new Map();\n /**\n * Executes all hooks associated with the specified name, passing the given argument to each hook function.\n * The hooks are invoked sequentially, and the argument may be modified by each hook.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook whose functions will be executed.\n * @param context - The input value to be passed to each hook function. The value is mutated by each hook function.\n * @returns A promise that resolves once all hook functions have been executed.\n *\n * @example\n * ```typescript\n * const hooks = new Hooks();\n * hooks.on('html:transform:pre', async (ctx) => {\n * ctx.html = ctx.html.replace(/foo/g, 'bar');\n * return ctx.html;\n * });\n * const result = await hooks.run('html:transform:pre', { html: '<div>foo</div>' });\n * console.log(result); // '<div>bar</div>'\n * ```\n * @internal\n */\n async run(name, context) {\n const hooks = this.store.get(name);\n switch (name) {\n case 'html:transform:pre': {\n if (!hooks) {\n return context.html;\n }\n const ctx = { ...context };\n for (const hook of hooks) {\n ctx.html = await hook(ctx);\n }\n return ctx.html;\n }\n default:\n throw new Error(`Running hook \"${name}\" is not supported.`);\n }\n }\n /**\n * Registers a new hook function under the specified hook name.\n * This function should be a function that takes an argument of type `T` and returns a `string` or `Promise<string>`.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook under which the function will be registered.\n * @param handler - A function to be executed when the hook is triggered. The handler will be called with an argument\n * that may be modified by the hook functions.\n *\n * @remarks\n * - If there are existing handlers registered under the given hook name, the new handler will be added to the list.\n * - If no handlers are registered under the given hook name, a new list will be created with the handler as its first element.\n *\n * @example\n * ```typescript\n * hooks.on('html:transform:pre', async (ctx) => {\n * return ctx.html.replace(/foo/g, 'bar');\n * });\n * ```\n */\n on(name, handler) {\n const hooks = this.store.get(name);\n if (hooks) {\n hooks.push(handler);\n }\n else {\n this.store.set(name, [handler]);\n }\n }\n /**\n * Checks if there are any hooks registered under the specified name.\n *\n * @param name - The name of the hook to check.\n * @returns `true` if there are hooks registered under the specified name, otherwise `false`.\n */\n has(name) {\n return !!this.store.get(name)?.length;\n }\n}\n//# sourceMappingURL=hooks.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripIndexHtmlFromURL } from '../utils/url';\nimport { extractRoutesAndCreateRouteTree } from './ng-routes';\nimport { RouteTree } from './route-tree';\n/**\n * Manages the application's server routing logic by building and maintaining a route tree.\n *\n * This class is responsible for constructing the route tree from the Angular application\n * configuration and using it to match incoming requests to the appropriate routes.\n */\nexport class ServerRouter {\n routeTree;\n /**\n * Creates an instance of the `ServerRouter`.\n *\n * @param routeTree - An instance of `RouteTree` that holds the routing information.\n * The `RouteTree` is used to match request URLs to the appropriate route metadata.\n */\n constructor(routeTree) {\n this.routeTree = routeTree;\n }\n /**\n * Static property to track the ongoing build promise.\n */\n static #extractionPromise;\n /**\n * Creates or retrieves a `ServerRouter` instance based on the provided manifest and URL.\n *\n * If the manifest contains pre-built routes, a new `ServerRouter` is immediately created.\n * Otherwise, it builds the router by extracting routes from the Angular configuration\n * asynchronously. This method ensures that concurrent builds are prevented by re-using\n * the same promise.\n *\n * @param manifest - An instance of `AngularAppManifest` that contains the route information.\n * @param url - The URL for server-side rendering. The URL is needed to configure `ServerPlatformLocation`.\n * This is necessary to ensure that API requests for relative paths succeed, which is crucial for correct route extraction.\n * [Reference](https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51)\n * @returns A promise resolving to a `ServerRouter` instance.\n */\n static from(manifest, url) {\n if (manifest.routes) {\n const routeTree = RouteTree.fromObject(manifest.routes);\n return Promise.resolve(new ServerRouter(routeTree));\n }\n // Create and store a new promise for the build process.\n // This prevents concurrent builds by re-using the same promise.\n ServerRouter.#extractionPromise ??= extractRoutesAndCreateRouteTree(url, manifest)\n .then(({ routeTree, errors }) => {\n if (errors.length > 0) {\n throw new Error('Error(s) occurred while extracting routes:\\n' +\n errors.map((error) => `- ${error}`).join('\\n'));\n }\n return new ServerRouter(routeTree);\n })\n .finally(() => {\n ServerRouter.#extractionPromise = undefined;\n });\n return ServerRouter.#extractionPromise;\n }\n /**\n * Matches a request URL against the route tree to retrieve route metadata.\n *\n * This method strips 'index.html' from the URL if it is present and then attempts\n * to find a match in the route tree. If a match is found, it returns the associated\n * route metadata; otherwise, it returns `undefined`.\n *\n * @param url - The URL to be matched against the route tree.\n * @returns The metadata for the matched route or `undefined` if no match is found.\n */\n match(url) {\n // Strip 'index.html' from URL if present.\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const { pathname } = stripIndexHtmlFromURL(url);\n return this.routeTree.match(decodeURIComponent(pathname));\n }\n}\n//# sourceMappingURL=router.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Generates a SHA-256 hash of the provided string.\n *\n * @param data - The input string to be hashed.\n * @returns A promise that resolves to the SHA-256 hash of the input,\n * represented as a hexadecimal string.\n */\nexport async function sha256(data) {\n const encodedData = new TextEncoder().encode(data);\n const hashBuffer = await crypto.subtle.digest('SHA-256', encodedData);\n const hashParts = [];\n for (const h of new Uint8Array(hashBuffer)) {\n hashParts.push(h.toString(16).padStart(2, '0'));\n }\n return hashParts.join('');\n}\n//# sourceMappingURL=crypto.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport Beasties from '../../third_party/beasties';\n/**\n * Pattern used to extract the media query set by Beasties in an `onload` handler.\n */\nconst MEDIA_SET_HANDLER_PATTERN = /^this\\.media=[\"'](.*)[\"'];?$/;\n/**\n * Name of the attribute used to save the Beasties media query so it can be re-assigned on load.\n */\nconst CSP_MEDIA_ATTR = 'ngCspMedia';\n/**\n * Script that dynamically updates the `media` attribute of `<link>` tags based on a custom attribute (`CSP_MEDIA_ATTR`).\n *\n * NOTE:\n * We do not use `document.querySelectorAll('link').forEach((s) => s.addEventListener('load', ...)`\n * because load events are not always triggered reliably on Chrome.\n * See: https://github.com/angular/angular-cli/issues/26932 and https://crbug.com/1521256\n *\n * The script:\n * - Ensures the event target is a `<link>` tag with the `CSP_MEDIA_ATTR` attribute.\n * - Updates the `media` attribute with the value of `CSP_MEDIA_ATTR` and then removes the attribute.\n * - Removes the event listener when all relevant `<link>` tags have been processed.\n * - Uses event capturing (the `true` parameter) since load events do not bubble up the DOM.\n */\nconst LINK_LOAD_SCRIPT_CONTENT = `\n(() => {\n const CSP_MEDIA_ATTR = '${CSP_MEDIA_ATTR}';\n const documentElement = document.documentElement;\n\n // Listener for load events on link tags.\n const listener = (e) => {\n const target = e.target;\n if (\n !target ||\n target.tagName !== 'LINK' ||\n !target.hasAttribute(CSP_MEDIA_ATTR)\n ) {\n return;\n }\n\n target.media = target.getAttribute(CSP_MEDIA_ATTR);\n target.removeAttribute(CSP_MEDIA_ATTR);\n\n if (!document.head.querySelector(\\`link[\\${CSP_MEDIA_ATTR}]\\`)) {\n documentElement.removeEventListener('load', listener);\n }\n };\n\n documentElement.addEventListener('load', listener, true);\n})();`;\nclass BeastiesBase extends Beasties {\n}\n/* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */\nexport class InlineCriticalCssProcessor extends BeastiesBase {\n readFile;\n outputPath;\n addedCspScriptsDocuments = new WeakSet();\n documentNonces = new WeakMap();\n constructor(readFile, outputPath) {\n super({\n logger: {\n // eslint-disable-next-line no-console\n warn: (s) => console.warn(s),\n // eslint-disable-next-line no-console\n error: (s) => console.error(s),\n info: () => { },\n },\n logLevel: 'warn',\n path: outputPath,\n publicPath: undefined,\n compress: false,\n pruneSource: false,\n reduceInlineStyles: false,\n mergeStylesheets: false,\n // Note: if `preload` changes to anything other than `media`, the logic in\n // `embedLinkedStylesheet` will have to be updated.\n preload: 'media',\n noscriptFallback: true,\n inlineFonts: true,\n });\n this.readFile = readFile;\n this.outputPath = outputPath;\n }\n /**\n * Override of the Beasties `embedLinkedStylesheet` method\n * that makes it work with Angular's CSP APIs.\n */\n async embedLinkedStylesheet(link, document) {\n if (link.getAttribute('media') === 'print' && link.next?.name === 'noscript') {\n // Workaround for https://github.com/GoogleChromeLabs/critters/issues/64\n // NB: this is only needed for the webpack based builders.\n const media = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (media) {\n link.removeAttribute('onload');\n link.setAttribute('media', media[1]);\n link?.next?.remove();\n }\n }\n const returnValue = await super.embedLinkedStylesheet(link, document);\n const cspNonce = this.findCspNonce(document);\n if (cspNonce) {\n const beastiesMedia = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (beastiesMedia) {\n // If there's a Beasties-generated `onload` handler and the file has an Angular CSP nonce,\n // we have to remove the handler, because it's incompatible with CSP. We save the value\n // in a different attribute and we generate a script tag with the nonce that uses\n // `addEventListener` to apply the media query instead.\n link.removeAttribute('onload');\n link.setAttribute(CSP_MEDIA_ATTR, beastiesMedia[1]);\n this.conditionallyInsertCspLoadingScript(document, cspNonce, link);\n }\n // Ideally we would hook in at the time Beasties inserts the `style` tags, but there isn't\n // a way of doing that at the moment so we fall back to doing it any time a `link` tag is\n // inserted. We mitigate it by only iterating the direct children of the `<head>` which\n // should be pretty shallow.\n document.head.children.forEach((child) => {\n if (child.tagName === 'style' && !child.hasAttribute('nonce')) {\n child.setAttribute('nonce', cspNonce);\n }\n });\n }\n return returnValue;\n }\n /**\n * Finds the CSP nonce for a specific document.\n */\n findCspNonce(document) {\n if (this.documentNonces.has(document)) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this.documentNonces.get(document);\n }\n // HTML attribute are case-insensitive, but the parser used by Beasties is case-sensitive.\n const nonceElement = document.querySelector('[ngCspNonce], [ngcspnonce]');\n const cspNonce = nonceElement?.getAttribute('ngCspNonce') || nonceElement?.getAttribute('ngcspnonce') || null;\n this.documentNonces.set(document, cspNonce);\n return cspNonce;\n }\n /**\n * Inserts the `script` tag that swaps the critical CSS at runtime,\n * if one hasn't been inserted into the document already.\n */\n conditionallyInsertCspLoadingScript(document, nonce, link) {\n if (this.addedCspScriptsDocuments.has(document)) {\n return;\n }\n if (document.head.textContent.includes(LINK_LOAD_SCRIPT_CONTENT)) {\n // Script was already added during the build.\n this.addedCspScriptsDocuments.add(document);\n return;\n }\n const script = document.createElement('script');\n script.setAttribute('nonce', nonce);\n script.textContent = LINK_LOAD_SCRIPT_CONTENT;\n // Prepend the script to the head since it needs to\n // run as early as possible, before the `link` tags.\n document.head.insertBefore(script, link);\n this.addedCspScriptsDocuments.add(document);\n }\n}\n//# sourceMappingURL=inline-critical-css.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * A Least Recently Used (LRU) cache implementation.\n *\n * This cache stores a fixed number of key-value pairs, and when the cache exceeds its capacity,\n * the least recently accessed items are evicted.\n *\n * @template Key - The type of the cache keys.\n * @template Value - The type of the cache values.\n */\nexport class LRUCache {\n /**\n * The maximum number of items the cache can hold.\n */\n capacity;\n /**\n * Internal storage for the cache, mapping keys to their associated nodes in the linked list.\n */\n cache = new Map();\n /**\n * Head of the doubly linked list, representing the most recently used item.\n */\n head;\n /**\n * Tail of the doubly linked list, representing the least recently used item.\n */\n tail;\n /**\n * Creates a new LRUCache instance.\n * @param capacity The maximum number of items the cache can hold.\n */\n constructor(capacity) {\n this.capacity = capacity;\n }\n /**\n * Gets the value associated with the given key.\n * @param key The key to retrieve the value for.\n * @returns The value associated with the key, or undefined if the key is not found.\n */\n get(key) {\n const node = this.cache.get(key);\n if (node) {\n this.moveToHead(node);\n return node.value;\n }\n return undefined;\n }\n /**\n * Puts a key-value pair into the cache.\n * If the key already exists, the value is updated.\n * If the cache is full, the least recently used item is evicted.\n * @param key The key to insert or update.\n * @param value The value to associate with the key.\n */\n put(key, value) {\n const cachedNode = this.cache.get(key);\n if (cachedNode) {\n // Update existing node\n cachedNode.value = value;\n this.moveToHead(cachedNode);\n return;\n }\n // Create a new node\n const newNode = { key, value, prev: undefined, next: undefined };\n this.cache.set(key, newNode);\n this.addToHead(newNode);\n if (this.cache.size > this.capacity) {\n // Evict the LRU item\n const tail = this.removeTail();\n if (tail) {\n this.cache.delete(tail.key);\n }\n }\n }\n /**\n * Adds a node to the head of the linked list.\n * @param node The node to add.\n */\n addToHead(node) {\n node.next = this.head;\n node.prev = undefined;\n if (this.head) {\n this.head.prev = node;\n }\n this.head = node;\n if (!this.tail) {\n this.tail = node;\n }\n }\n /**\n * Removes a node from the linked list.\n * @param node The node to remove.\n */\n removeNode(node) {\n if (node.prev) {\n node.prev.next = node.next;\n }\n else {\n this.head = node.next;\n }\n if (node.next) {\n node.next.prev = node.prev;\n }\n else {\n this.tail = node.prev;\n }\n }\n /**\n * Moves a node to the head of the linked list.\n * @param node The node to move.\n */\n moveToHead(node) {\n this.removeNode(node);\n this.addToHead(node);\n }\n /**\n * Removes the tail node from the linked list.\n * @returns The removed tail node, or undefined if the list is empty.\n */\n removeTail() {\n const node = this.tail;\n if (node) {\n this.removeNode(node);\n }\n return node;\n }\n}\n//# sourceMappingURL=lru-cache.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { LOCALE_ID, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, ɵresetCompiledComponents, } from '@angular/core';\nimport { ServerAssets } from './assets';\nimport { Hooks } from './hooks';\nimport { getAngularAppManifest } from './manifest';\nimport { RenderMode } from './routes/route-config';\nimport { ServerRouter } from './routes/router';\nimport { sha256 } from './utils/crypto';\nimport { InlineCriticalCssProcessor } from './utils/inline-critical-css';\nimport { LRUCache } from './utils/lru-cache';\nimport { renderAngular } from './utils/ng';\nimport { joinUrlParts, stripIndexHtmlFromURL, stripLeadingSlash } from './utils/url';\n/**\n * Maximum number of critical CSS entries the cache can store.\n * This value determines the capacity of the LRU (Least Recently Used) cache, which stores critical CSS for pages.\n */\nconst MAX_INLINE_CSS_CACHE_ENTRIES = 50;\n/**\n * A mapping of `RenderMode` enum values to corresponding string representations.\n *\n * This record is used to map each `RenderMode` to a specific string value that represents\n * the server context. The string values are used internally to differentiate\n * between various rendering strategies when processing routes.\n *\n * - `RenderMode.Prerender` maps to `'ssg'` (Static Site Generation).\n * - `RenderMode.Server` maps to `'ssr'` (Server-Side Rendering).\n * - `RenderMode.Client` maps to an empty string `''` (Client-Side Rendering, no server context needed).\n */\nconst SERVER_CONTEXT_VALUE = {\n [RenderMode.Prerender]: 'ssg',\n [RenderMode.Server]: 'ssr',\n [RenderMode.Client]: '',\n};\n/**\n * Represents a locale-specific Angular server application managed by the server application engine.\n *\n * The `AngularServerApp` class handles server-side rendering and asset management for a specific locale.\n */\nexport class AngularServerApp {\n options;\n /**\n * Whether prerendered routes should be rendered on demand or served directly.\n *\n * @see {@link AngularServerAppOptions.allowStaticRouteRender} for more details.\n */\n allowStaticRouteRender;\n /**\n * Hooks for extending or modifying server behavior.\n *\n * @see {@link AngularServerAppOptions.hooks} for more details.\n */\n hooks;\n /**\n * Constructs an instance of `AngularServerApp`.\n *\n * @param options Optional configuration options for the server application.\n */\n constructor(options = {}) {\n this.options = options;\n this.allowStaticRouteRender = this.options.allowStaticRouteRender ?? false;\n this.hooks = options.hooks ?? new Hooks();\n }\n /**\n * The manifest associated with this server application.\n */\n manifest = getAngularAppManifest();\n /**\n * An instance of ServerAsset that handles server-side asset.\n */\n assets = new ServerAssets(this.manifest);\n /**\n * The router instance used for route matching and handling.\n */\n router;\n /**\n * The `inlineCriticalCssProcessor` is responsible for handling critical CSS inlining.\n */\n inlineCriticalCssProcessor;\n /**\n * The bootstrap mechanism for the server application.\n */\n boostrap;\n /**\n * Cache for storing critical CSS for pages.\n * Stores a maximum of MAX_INLINE_CSS_CACHE_ENTRIES entries.\n *\n * Uses an LRU (Least Recently Used) eviction policy, meaning that when the cache is full,\n * the least recently accessed page's critical CSS will be removed to make space for new entries.\n */\n criticalCssLRUCache = new LRUCache(MAX_INLINE_CSS_CACHE_ENTRIES);\n /**\n * Handles an incoming HTTP request by serving prerendered content, performing server-side rendering,\n * or delivering a static file for client-side rendered routes based on the `RenderMode` setting.\n *\n * @param request - The HTTP request to handle.\n * @param requestContext - Optional context for rendering, such as metadata associated with the request.\n * @returns A promise that resolves to the resulting HTTP response object, or `null` if no matching Angular route is found.\n *\n * @remarks A request to `https://www.example.com/page/index.html` will serve or render the Angular route\n * corresponding to `https://www.example.com/page`.\n */\n async handle(request, requestContext) {\n const url = new URL(request.url);\n this.router ??= await ServerRouter.from(this.manifest, url);\n const matchedRoute = this.router.match(url);\n if (!matchedRoute) {\n // Not a known Angular route.\n return null;\n }\n const { redirectTo, status, renderMode } = matchedRoute;\n if (redirectTo !== undefined) {\n // Note: The status code is validated during route extraction.\n // 302 Found is used by default for redirections\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return Response.redirect(new URL(redirectTo, url), status ?? 302);\n }\n if (renderMode === RenderMode.Prerender) {\n const response = await this.handleServe(request, matchedRoute);\n if (response) {\n return response;\n }\n }\n return Promise.race([\n this.waitForRequestAbort(request),\n this.handleRendering(request, matchedRoute, requestContext),\n ]);\n }\n /**\n * Handles serving a prerendered static asset if available for the matched route.\n *\n * This method only supports `GET` and `HEAD` requests.\n *\n * @param request - The incoming HTTP request for serving a static page.\n * @param matchedRoute - The metadata of the matched route for rendering.\n * If not provided, the method attempts to find a matching route based on the request URL.\n * @returns A promise that resolves to a `Response` object if the prerendered page is found, or `null`.\n */\n async handleServe(request, matchedRoute) {\n const { headers, renderMode } = matchedRoute;\n if (renderMode !== RenderMode.Prerender) {\n return null;\n }\n const { method } = request;\n if (method !== 'GET' && method !== 'HEAD') {\n return null;\n }\n const { pathname } = stripIndexHtmlFromURL(new URL(request.url));\n const assetPath = stripLeadingSlash(joinUrlParts(pathname, 'index.html'));\n if (!this.assets.hasServerAsset(assetPath)) {\n return null;\n }\n const { text, hash, size } = this.assets.getServerAsset(assetPath);\n const etag = `\"${hash}\"`;\n return request.headers.get('if-none-match') === etag\n ? new Response(undefined, { status: 304, statusText: 'Not Modified' })\n : new Response(await text(), {\n headers: {\n 'Content-Length': size.toString(),\n 'ETag': etag,\n 'Content-Type': 'text/html;charset=UTF-8',\n ...headers,\n },\n });\n }\n /**\n * Handles the server-side rendering process for the given HTTP request.\n * This method matches the request URL to a route and performs rendering if a matching route is found.\n *\n * @param request - The incoming HTTP request to be processed.\n * @param matchedRoute - The metadata of the matched route for rendering.\n * If not provided, the method attempts to find a matching route based on the request URL.\n * @param requestContext - Optional additional context for rendering, such as request metadata.\n *\n * @returns A promise that resolves to the rendered response, or null if no matching route is found.\n */\n async handleRendering(request, matchedRoute, requestContext) {\n const { redirectTo, status } = matchedRoute;\n if (redirectTo !== undefined) {\n // Note: The status code is validated during route extraction.\n // 302 Found is used by default for redirections\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return Response.redirect(new URL(redirectTo, new URL(request.url)), status ?? 302);\n }\n const { renderMode, headers } = matchedRoute;\n if (!this.allowStaticRouteRender && renderMode === RenderMode.Prerender) {\n return null;\n }\n const platformProviders = [];\n // Initialize the response with status and headers if available.\n const responseInit = {\n status,\n headers: new Headers({\n 'Content-Type': 'text/html;charset=UTF-8',\n ...headers,\n }),\n };\n if (renderMode === RenderMode.Server) {\n // Configure platform providers for request and response only for SSR.\n platformProviders.push({\n provide: REQUEST,\n useValue: request,\n }, {\n provide: REQUEST_CONTEXT,\n useValue: requestContext,\n }, {\n provide: RESPONSE_INIT,\n useValue: responseInit,\n });\n }\n else if (renderMode === RenderMode.Client) {\n // Serve the client-side rendered version if the route is configured for CSR.\n return new Response(await this.assets.getServerAsset('index.csr.html').text(), responseInit);\n }\n const { manifest: { bootstrap, inlineCriticalCss, locale }, hooks, assets, } = this;\n if (locale !== undefined) {\n platformProviders.push({\n provide: LOCALE_ID,\n useValue: locale,\n });\n }\n const url = new URL(request.url);\n let html = await assets.getIndexServerHtml().text();\n // Skip extra microtask if there are no pre hooks.\n if (hooks.has('html:transform:pre')) {\n html = await hooks.run('html:transform:pre', { html, url });\n }\n this.boostrap ??= await bootstrap();\n html = await renderAngular(html, this.boostrap, url, platformProviders, SERVER_CONTEXT_VALUE[renderMode]);\n if (inlineCriticalCss) {\n // Optionally inline critical CSS.\n this.inlineCriticalCssProcessor ??= new InlineCriticalCssProcessor((path) => {\n const fileName = path.split('/').pop() ?? path;\n return this.assets.getServerAsset(fileName).text();\n });\n // TODO(alanagius): remove once Node.js version 18 is no longer supported.\n if (renderMode === RenderMode.Server && typeof crypto === 'undefined') {\n // eslint-disable-next-line no-console\n console.error(`The global 'crypto' module is unavailable. ` +\n `If you are running on Node.js, please ensure you are using version 20 or later, ` +\n `which includes built-in support for the Web Crypto module.`);\n }\n if (renderMode === RenderMode.Server && typeof crypto !== 'undefined') {\n // Only cache if we are running in SSR Mode.\n const cacheKey = await sha256(html);\n let htmlWithCriticalCss = this.criticalCssLRUCache.get(cacheKey);\n if (htmlWithCriticalCss === undefined) {\n htmlWithCriticalCss = await this.inlineCriticalCssProcessor.process(html);\n this.criticalCssLRUCache.put(cacheKey, htmlWithCriticalCss);\n }\n html = htmlWithCriticalCss;\n }\n else {\n html = await this.inlineCriticalCssProcessor.process(html);\n }\n }\n return new Response(html, responseInit);\n }\n /**\n * Returns a promise that rejects if the request is aborted.\n *\n * @param request - The HTTP request object being monitored for abortion.\n * @returns A promise that never resolves and rejects with an `AbortError`\n * if the request is aborted.\n */\n waitForRequestAbort(request) {\n return new Promise((_, reject) => {\n request.signal.addEventListener('abort', () => {\n const abortError = new Error(`Request for: ${request.url} was aborted.\\n${request.signal.reason}`);\n abortError.name = 'AbortError';\n reject(abortError);\n }, { once: true });\n });\n }\n}\nlet angularServerApp;\n/**\n * Retrieves or creates an instance of `AngularServerApp`.\n * - If an instance of `AngularServerApp` already exists, it will return the existing one.\n * - If no instance exists, it will create a new one with the provided options.\n *\n * @param options Optional configuration options for the server application.\n *\n * @returns The existing or newly created instance of `AngularServerApp`.\n */\nexport function getOrCreateAngularServerApp(options) {\n return (angularServerApp ??= new AngularServerApp(options));\n}\n/**\n * Destroys the existing `AngularServerApp` instance, releasing associated resources and resetting the\n * reference to `undefined`.\n *\n * This function is primarily used to enable the recreation of the `AngularServerApp` instance,\n * typically when server configuration or application state needs to be refreshed.\n */\nexport function destroyAngularServerApp() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Need to clean up GENERATED_COMP_IDS map in `@angular/core`.\n // Otherwise an incorrect component ID generation collision detected warning will be displayed in development.\n // See: https://github.com/angular/angular-cli/issues/25924\n ɵresetCompiledComponents();\n }\n angularServerApp = undefined;\n}\n//# sourceMappingURL=app.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n// ɵgetRoutesFromAngularRouterConfig is only used by the Webpack based server builder.\nexport { getRoutesFromAngularRouterConfig as ɵgetRoutesFromAngularRouterConfig, extractRoutesAndCreateRouteTree as ɵextractRoutesAndCreateRouteTree, } from './src/routes/ng-routes';\nexport { getOrCreateAngularServerApp as ɵgetOrCreateAngularServerApp, destroyAngularServerApp as ɵdestroyAngularServerApp, } from './src/app';\nexport { setAngularAppManifest as ɵsetAngularAppManifest, setAngularAppEngineManifest as ɵsetAngularAppEngineManifest, } from './src/manifest';\nexport { InlineCriticalCssProcessor as ɵInlineCriticalCssProcessor } from './src/utils/inline-critical-css';\n//# sourceMappingURL=private_export.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Extracts a potential locale ID from a given URL based on the specified base path.\n *\n * This function parses the URL to locate a potential locale identifier that immediately\n * follows the base path segment in the URL's pathname. If the URL does not contain a valid\n * locale ID, an empty string is returned.\n *\n * @param url - The full URL from which to extract the locale ID.\n * @param basePath - The base path used as the reference point for extracting the locale ID.\n * @returns The extracted locale ID if present, or an empty string if no valid locale ID is found.\n *\n * @example\n * ```js\n * const url = new URL('https://example.com/base/en/page');\n * const basePath = '/base';\n * const localeId = getPotentialLocaleIdFromUrl(url, basePath);\n * console.log(localeId); // Output: 'en'\n * ```\n */\nexport function getPotentialLocaleIdFromUrl(url, basePath) {\n const { pathname } = url;\n // Move forward of the base path section.\n let start = basePath.length;\n if (pathname[start] === '/') {\n start++;\n }\n // Find the next forward slash.\n let end = pathname.indexOf('/', start);\n if (end === -1) {\n end = pathname.length;\n }\n // Extract the potential locale id.\n return pathname.slice(start, end);\n}\n//# sourceMappingURL=i18n.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { Hooks } from './hooks';\nimport { getPotentialLocaleIdFromUrl } from './i18n';\nimport { getAngularAppEngineManifest } from './manifest';\n/**\n * Angular server application engine.\n * Manages Angular server applications (including localized ones), handles rendering requests,\n * and optionally transforms index HTML before rendering.\n *\n * @remarks This class should be instantiated once and used as a singleton across the server-side\n * application to ensure consistent handling of rendering requests and resource management.\n *\n * @developerPreview\n */\nexport class AngularAppEngine {\n /**\n * A flag to enable or disable the rendering of prerendered routes.\n *\n * Typically used during development to avoid prerendering all routes ahead of time,\n * allowing them to be rendered on the fly as requested.\n *\n * @private\n */\n static ɵallowStaticRouteRender = false;\n /**\n * Hooks for extending or modifying the behavior of the server application.\n * These hooks are used by the Angular CLI when running the development server and\n * provide extensibility points for the application lifecycle.\n *\n * @private\n */\n static ɵhooks = /* #__PURE__*/ new Hooks();\n /**\n * The manifest for the server application.\n */\n manifest = getAngularAppEngineManifest();\n /**\n * A cache that holds entry points, keyed by their potential locale string.\n */\n entryPointsCache = new Map();\n /**\n * Handles an incoming HTTP request by serving prerendered content, performing server-side rendering,\n * or delivering a static file for client-side rendered routes based on the `RenderMode` setting.\n *\n * @param request - The HTTP request to handle.\n * @param requestContext - Optional context for rendering, such as metadata associated with the request.\n * @returns A promise that resolves to the resulting HTTP response object, or `null` if no matching Angular route is found.\n *\n * @remarks A request to `https://www.example.com/page/index.html` will serve or render the Angular route\n * corresponding to `https://www.example.com/page`.\n */\n async handle(request, requestContext) {\n const serverApp = await this.getAngularServerAppForRequest(request);\n return serverApp ? serverApp.handle(request, requestContext) : null;\n }\n /**\n * Retrieves the Angular server application instance for a given request.\n *\n * This method checks if the request URL corresponds to an Angular application entry point.\n * If so, it initializes or retrieves an instance of the Angular server application for that entry point.\n * Requests that resemble file requests (except for `/index.html`) are skipped.\n *\n * @param request - The incoming HTTP request object.\n * @returns A promise that resolves to an `AngularServerApp` instance if a valid entry point is found,\n * or `null` if no entry point matches the request URL.\n */\n async getAngularServerAppForRequest(request) {\n // Skip if the request looks like a file but not `/index.html`.\n const url = new URL(request.url);\n const entryPoint = await this.getEntryPointExportsForUrl(url);\n if (!entryPoint) {\n return null;\n }\n // Note: Using `instanceof` is not feasible here because `AngularServerApp` will\n // be located in separate bundles, making `instanceof` checks unreliable.\n const ɵgetOrCreateAngularServerApp = entryPoint.ɵgetOrCreateAngularServerApp;\n const serverApp = ɵgetOrCreateAngularServerApp({\n allowStaticRouteRender: AngularAppEngine.ɵallowStaticRouteRender,\n hooks: AngularAppEngine.ɵhooks,\n });\n return serverApp;\n }\n /**\n * Retrieves the exports for a specific entry point, caching the result.\n *\n * @param potentialLocale - The locale string used to find the corresponding entry point.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExports(potentialLocale) {\n const cachedEntryPoint = this.entryPointsCache.get(potentialLocale);\n if (cachedEntryPoint) {\n return cachedEntryPoint;\n }\n const { entryPoints } = this.manifest;\n const entryPoint = entryPoints.get(potentialLocale);\n if (!entryPoint) {\n return undefined;\n }\n const entryPointExports = entryPoint();\n this.entryPointsCache.set(potentialLocale, entryPointExports);\n return entryPointExports;\n }\n /**\n * Retrieves the entry point for a given URL by determining the locale and mapping it to\n * the appropriate application bundle.\n *\n * This method determines the appropriate entry point and locale for rendering the application by examining the URL.\n * If there is only one entry point available, it is returned regardless of the URL.\n * Otherwise, the method extracts a potential locale identifier from the URL and looks up the corresponding entry point.\n *\n * @param url - The URL of the request.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExportsForUrl(url) {\n const { entryPoints, basePath } = this.manifest;\n if (entryPoints.size === 1) {\n return this.getEntryPointExports('');\n }\n const potentialLocale = getPotentialLocaleIdFromUrl(url, basePath);\n return this.getEntryPointExports(potentialLocale);\n }\n}\n//# sourceMappingURL=app-engine.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Annotates a request handler function with metadata, marking it as a special\n * handler.\n *\n * @param handler - The request handler function to be annotated.\n * @returns The same handler function passed in, with metadata attached.\n *\n * @example\n * Example usage in a Hono application:\n * ```ts\n * const app = new Hono();\n * export default createRequestHandler(app.fetch);\n * ```\n *\n * @example\n * Example usage in a H3 application:\n * ```ts\n * const app = createApp();\n * const handler = toWebHandler(app);\n * export default createRequestHandler(handler);\n * ```\n * @developerPreview\n */\nexport function createRequestHandler(handler) {\n handler['__ng_request_handler__'] = true;\n return handler;\n}\n//# sourceMappingURL=handler.js.map"],"names":["ɵConsole","SERVER_CONTEXT","loadChildrenHelper","whenStable","ɵresetCompiledComponents"],"mappings":";;;;;;AAOA;AACA;AACA;AACO,MAAM,YAAY,CAAC;AAC1B,IAAI,QAAQ;AACZ;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,IAAI,CAAC,QAAQ,GAAG,QAAQ;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,cAAc,CAAC,IAAI,EAAE;AACzB,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AACpD,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,cAAc,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;AACrE;AACA,QAAQ,OAAO,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,cAAc,CAAC,IAAI,EAAE;AACzB,QAAQ,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,kBAAkB,GAAG;AACzB,QAAQ,OAAO,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC;AACvD;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,OAAO,SAASA,QAAQ,CAAC;AACtC;AACA;AACA;AACA,IAAI,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,yCAA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eAAe,GAAG,2BAA2B,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC1E,QAAQ,OAAO,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC;AACzD;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,OAAO,EAAE;AAC9C,IAAI,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI;AAC5C,IAAI,OAAO,OAAO;AAClB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/ssr",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.1",
|
|
4
4
|
"description": "Angular server side rendering utilities",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/angular/angular-cli",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
"tslib": "^2.3.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/common": "^19.0.0
|
|
20
|
-
"@angular/core": "^19.0.0
|
|
21
|
-
"@angular/platform-server": "^19.0.0
|
|
22
|
-
"@angular/router": "^19.0.0
|
|
19
|
+
"@angular/common": "^19.0.0",
|
|
20
|
+
"@angular/core": "^19.0.0",
|
|
21
|
+
"@angular/platform-server": "^19.0.0",
|
|
22
|
+
"@angular/router": "^19.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@angular/common": "19.0.0
|
|
26
|
-
"@angular/compiler": "19.0.0
|
|
27
|
-
"@angular/core": "19.0.0
|
|
28
|
-
"@angular/platform-browser": "19.0.0
|
|
29
|
-
"@angular/platform-server": "19.0.0
|
|
30
|
-
"@angular/router": "19.0.0
|
|
25
|
+
"@angular/common": "19.0.0",
|
|
26
|
+
"@angular/compiler": "19.0.0",
|
|
27
|
+
"@angular/core": "19.0.0",
|
|
28
|
+
"@angular/platform-browser": "19.0.0",
|
|
29
|
+
"@angular/platform-server": "19.0.0",
|
|
30
|
+
"@angular/router": "19.0.0",
|
|
31
31
|
"@bazel/runfiles": "^5.8.1"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|