{"version":3,"sources":["../source/services/logic/router/styled.ts","../source/services/logic/router/index.tsx","../source/containers/RouterBrowser/styled.ts","../source/containers/RouterBrowser/FadeIn/styled.ts","../source/containers/RouterBrowser/FadeIn/index.tsx","../source/containers/RouterBrowser/index.tsx","../source/containers/RouterStatic/index.tsx","../source/containers/Provider/index.tsx","../source/services/utilities/providers.tsx","../source/data/constants/index.ts","../source/services/logic/link/observer.ts","../source/services/logic/link/follow.ts","../source/components/links/Link/components/Preview/styled.ts","../source/components/links/Link/components/Preview/index.tsx","../source/components/links/Link/styled.ts","../source/components/links/Link/hooks/useLinkPreview.ts","../source/components/links/Link/index.tsx","../source/components/links/RouterLink/styled.ts","../source/components/links/RouterLink/index.tsx","../source/components/utilities/ApplicationConfigurator/styled.ts","../source/components/utilities/ApplicationConfigurator/index.tsx","../source/components/utilities/PlaneConfigurator/styled.ts","../source/components/utilities/PlaneConfigurator/index.tsx","../source/components/planes/ExternalPlane/styled.ts","../source/components/planes/ExternalPlane/index.tsx","../source/components/planes/IframePlane/styled.ts","../source/components/planes/IframePlane/index.tsx","../source/components/virtuals/List/components/ListItem/index.tsx","../source/components/virtuals/List/index.tsx","../source/services/logic/computing/index.ts","../source/services/logic/server/index.tsx","../source/services/hooks/plane/index.ts","../source/services/hooks/router/index.ts","../source/services/hooks/camera/index.ts","../source/services/hooks/selection/index.ts","../source/services/hooks/pubsub/index.ts","../source/services/hooks/api/index.ts","../source/services/hooks/look/index.ts","../source/components/utilities/Chrome/index.tsx","../source/index.tsx"],"names":["planes","space","view","PluridRoute","DirectPlane","context_default","React","useState","useContext","scrollToTop","matchedPath","cleanNavigation","cleanNavigationView","useEffect","PluridRouterStatic","Component","state","useRef","useMemo","useCallback","mapStateToProperties","mapDispatchToProperties","connect","pluridRouterNavigate","plurid","elementHeight","mapStateToProps","mapDispatchToProps","useEngineSelector","useEngineDispatch","storage","PLURID_ROUTER_STORAGE","PLURID_ROUTER_LOCATION_STORED","PluridApplicationConfigurator","PluridPlaneConfig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AA,EAEX,WAAA,EAAa,mBAAA;AAAA,EACb,YAAA,EAAc,oBAAA;AAAA,EACd,aAAA,EAAe,qBAAA;AAAA,EACf,QAAA,EAAU,gBAAA;AAAA,EAEV,IAAA,EAAM,YAAA;AAAA,EACN,UAAA,EAAY,kBAAA;AAAA,EACZ,uBAAA,EAAyBF,8BAAAA;AAAA,EACzB,iBAAA,EAAmBC,wBAAAA;AAAA,EACnB,aAAA,EAAe,mBAAA;AAAA,EACf,WAAA,EAAa,iBAAA;AAAA,EACb,WAAA,EAAaC,kBAAAA;AAAA;AAAA;AAAA;AAAA,gBAMbC,YAAA;AAAA,EACA,KAAA;AAAA,EACA,eAAA;AAAA,EACA,iBAAA;AAAA;AAAA,EAGA,MAAA,EAAQC,YAAAA;AAAA,EACR,YAAA,EAAc,mBAAA;AAAA;AAAA,EAGd,sBAAA;AAAA;AAAA,EAGA,UAAA,EAAYC,UAAAA;AAAA,EACZ,cAAA,EAAgBf,oBAAAA;AAAA;AAAA,EAGhB,eAAA;AAAA,EACA,eAAA;AAAA,EACA,qBAAA;AAAA,EACA,qBAAA;AAAA;AAAA,EAGA,SAAA,EAAW,iBAAA;AAAA,EACX,yBAAA;AAAA,EACA,oBAAA;AAAA;AAAA,EAEA,UAAA;AAAA,EACA,iBAAA;AAAA,EACA,aAAA;AAAA,EACA,mBAAA;AAAA,EACA,eAAA;AAAA,EACA,gBAAA;AAAA;AAAA,EAEA,KAAA;AAAA,EAEA;AAAA;AAEJ,CAAA;AA8bA,IAAO,cAAA,GAAQ","file":"index.mjs","sourcesContent":["// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport interface IStyledSpaces {\n    alignment: any;\n    snapType: any;\n}\n\nexport const StyledSpaces = styled.div<IStyledSpaces>`\n    scroll-snap-type: ${(properties: IStyledSpaces) => {\n        const {\n            alignment,\n            snapType,\n        } = properties;\n\n        if (snapType === 'none') {\n            return 'none';\n        }\n\n        return alignment + ' ' + snapType;\n    }};\n\n    flex-direction: ${(properties: IStyledSpaces) => {\n        const {\n            alignment,\n        } = properties;\n\n        if (alignment === 'x') {\n            return 'row';\n        }\n\n        return 'column';\n    }};\n\n    outline: none;\n    overflow: auto;\n    /* display: flex; */\n    height: 100vh;\n    height: -webkit-fill-available;\n    width: 100vw;\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React from 'react';\n\n    import {\n        /** constants */\n        PLURID_ENTITY_MULTISPACE,\n        PLURID_ROUTE_DEFAULT_PATH_VALUE,\n        PLURID_ROUTE_DEFAULT_PATH,\n        PLURID_ROUTE_DEFAULT_SPACE_VALUE,\n        PLURID_ROUTE_DEFAULT_SPACE,\n        PLURID_ROUTE_DEFAULT_UNIVERSE_VALUE,\n        PLURID_ROUTE_DEFAULT_UNIVERSE,\n        PLURID_ROUTE_DEFAULT_CLUSTER_VALUE,\n        PLURID_ROUTE_DEFAULT_CLUSTER,\n        PLURID_ROUTE_SEPARATOR,\n\n        /** interfaces */\n        PluridRoute,\n        PluridRoutePlane,\n        PluridPlane,\n        PluridRouterStatic,\n        PluridRouteComponentProperty,\n    } from '@plurid/plurid-data';\n\n    import PluridPubSub from '@plurid/plurid-pubsub';\n    import type {\n        PluridPubSub as IPluridPubSub,\n    } from '@plurid/plurid-data';\n\n    import {\n        uuid,\n    } from '@plurid/plurid-functions';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactComponent,\n        PluridReactPlane,\n        PluridRouteMatch,\n    } from '~data/interfaces';\n\n    import PluridApplication from '~containers/Application/index';\n\n    import {\n        isReactRenderable,\n    } from '~services/utilities/react';\n\n    import {\n        routing,\n        planes,\n        utilities,\n\n        PluridPlanesRegistrar,\n        resolvePluridRoutePlaneData,\n    } from '~services/engine';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledSpaces,\n    } from './styled';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport interface GetComponentFromRouteData {\n    matchedRoute: routing.MatcherResponse<PluridReactComponent>;\n    protocol: string;\n    host: string;\n    staticRender?: boolean;\n}\n\n/**\n * THE ID OF A ROUTE'S APPLICATION: its own, else `route:<value>`. Every route-driven application\n * used to be `default`, so with `useLocalStorage` each route saved over the others and booted with\n * their state (an isolated plane from one route left the next one's planes transparent), and they\n * shared one look scope.\n */\nexport const routeApplicationID = (\n    route: { id?: string; value: string },\n): string => route.id ?? 'route:' + route.value;\n\n\nexport const getComponentFromRoute = (\n    data: GetComponentFromRouteData,\n) => {\n    const {\n        matchedRoute,\n        protocol,\n        host,\n        staticRender,\n    } = data;\n\n    const {\n        path,\n        parameters,\n        query,\n    } = matchedRoute;\n\n    const pluridProperty = {\n        path: {\n            parameters,\n            query,\n        },\n    };\n\n    const {\n        exterior,\n        planes,\n        spaces,\n        slotted,\n    } = path;\n\n    // console.log('path', path);\n\n    const multispaceAlignment = path.multispace?.alignment || 'y';\n    const multispaceSnapType = path.multispace?.snapType || 'mandatory';\n\n    let PluridExterior: React.FC<any> = () => (<></>);\n    if (exterior) {\n        if (typeof exterior == 'function') {\n            PluridExterior = exterior;\n        }\n    }\n\n    let PluridSpaces: React.FC<any> = () => (<></>);\n    const spacesArray: any[] = [];\n    if (spaces) {\n        for (const space of spaces) {\n            const planes: PluridPlane<PluridReactComponent>[] = [];\n            const view = [];\n\n            if (space.planes) {\n                for (const plane of space.planes) {\n                    const planeData = resolvePluridRoutePlaneData(plane);\n\n                    const {\n                        component,\n                    } = planeData;\n\n                    const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                        ? PLURID_ROUTE_DEFAULT_PATH\n                        : utilities.cleanPathElement(path.value);\n                    const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                        ? PLURID_ROUTE_DEFAULT_SPACE\n                        : utilities.cleanPathElement(space.value);\n                    const universeName = PLURID_ROUTE_DEFAULT_UNIVERSE;\n                    const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n                    const planeName = utilities.cleanPathElement(planeData.value);\n\n                    const pathDivisions = [\n                        protocol,\n                        host,\n                        pathName,\n                        spaceName,\n                        universeName,\n                        clusterName,\n                        planeName,\n                    ];\n                    const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                    const pluridPlane: PluridPlane<PluridReactComponent> = {\n                        component,\n                        route: fullPath,\n                        // the route plane's document head travels with the registered plane\n                        ...(planeData.head ? { head: planeData.head } : {}),\n                    };\n\n                    planes.push(pluridPlane);\n                    view.push(fullPath);\n\n                    // if (component.kind === 'react') {\n                    //     const pluridPlane: PluridPlane<PluridReactComponent> = {\n                    //         component: {\n                    //             kind: 'react',\n                    //             element: component.element,\n                    //             properties: {\n                    //                 plurid: pluridProperty,\n                    //             },\n                    //         },\n                    //         route: fullPath,\n                    //     };\n\n                    //     planes.push(pluridPlane);\n                    //     view.push(fullPath);\n                    // }\n                }\n            }\n\n            if (space.universes) {\n                for (const universe of space.universes) {\n                    if (universe.planes) {\n                        for (const plane of universe.planes) {\n                            const planeData = resolvePluridRoutePlaneData(plane);\n\n                            const {\n                                component,\n                            } = planeData;\n\n                            const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                                ? PLURID_ROUTE_DEFAULT_PATH\n                                : utilities.cleanPathElement(path.value);\n                            const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                                ? PLURID_ROUTE_DEFAULT_SPACE\n                                : utilities.cleanPathElement(space.value);\n                            const universeName = universe.value === PLURID_ROUTE_DEFAULT_UNIVERSE_VALUE\n                                ? PLURID_ROUTE_DEFAULT_UNIVERSE\n                                : utilities.cleanPathElement(universe.value);\n                            const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n                            const planeName = utilities.cleanPathElement(planeData.value);\n\n                            const pathDivisions = [\n                                protocol,\n                                host,\n                                pathName,\n                                spaceName,\n                                universeName,\n                                clusterName,\n                                planeName,\n                            ];\n                            const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                            // if (component.kind === 'react') {\n                            //     const pluridPlane: PluridPlane = {\n                            //         component: {\n                            //             kind: 'react',\n                            //             element: component.element,\n                            //             properties: {\n                            //                 plurid: pluridProperty,\n                            //             },\n                            //         },\n                            //         route: fullPath,\n                            //     };\n\n                            //     planes.push(pluridPlane);\n                            //     view.push(fullPath);\n                            // }\n                        }\n                    }\n                }\n            }\n\n            // console.log('spaces path.value', path.value);\n            // console.log('getComponentFromRoute spaces view', view);\n            const pluridPlanesRegistrar = new PluridPlanesRegistrar<PluridReactComponent>(\n                [],\n                'localhost:63000',\n            );\n\n            const App = (\n                <PluridApplication\n                    key={uuid.generate()}\n                    id={space.id ?? routeApplicationID(path) + '#' + space.value}\n                    planes={planes}\n                    view={view}\n                    static={staticRender}\n                    configuration={space.configuration}\n                    planesRegistrar={pluridPlanesRegistrar}\n                    hostname={host}\n                />\n            );\n            spacesArray.push(App);\n        }\n    }\n\n    if (planes) {\n        const pluridPlanes: PluridPlane<PluridReactComponent>[] = [];\n        const view: any[] = [];\n\n        for (const plane of planes) {\n            const planeData = resolvePluridRoutePlaneData(plane);\n\n            const {\n                component,\n            } = planeData;\n\n            const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                ? PLURID_ROUTE_DEFAULT_PATH\n                : utilities.cleanPathElement(path.value);\n            const spaceName = PLURID_ROUTE_DEFAULT_SPACE;\n            const universeName = PLURID_ROUTE_DEFAULT_UNIVERSE;\n            const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n            const planeName = utilities.cleanPathElement(planeData.value);\n\n            const pathDivisions = [\n                protocol,\n                host,\n                pathName,\n                spaceName,\n                universeName,\n                clusterName,\n                planeName,\n            ];\n            const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n            // if (component.kind === 'react') {\n            //     const pluridPlane: PluridPlane<PluridReactComponent> = {\n            //         component: {\n            //             kind: 'react',\n            //             element: component.element,\n            //             properties: {\n            //                 plurid: pluridProperty,\n            //             },\n            //         },\n            //         route: fullPath,\n            //     };\n\n            //     pluridPlanes.push(pluridPlane);\n\n            //     if (!path.view) {\n            //         view.push(fullPath);\n            //     } else {\n            //         if (path.view.includes(plane.value)) {\n            //             view.push(fullPath);\n            //         }\n            //     }\n            // }\n        }\n\n        const planesProperties = new Map();\n\n        // console.log('path.value', path.value);\n\n        // console.log('getComponentFromRoute planes view', view);\n\n        const App = (\n            <PluridApplication\n                key={uuid.generate()}\n                id={routeApplicationID(path)}\n                planes={pluridPlanes}\n                planesProperties={planesProperties}\n                view={view}\n                static={staticRender}\n                configuration={path.defaultConfiguration}\n                hostname={host}\n            />\n        );\n        spacesArray.push(App);\n    }\n\n\n    let MultispaceHeader: React.FC<any>;\n    let MultispaceFooter: React.FC<any>;\n    if (path.multispace?.header) {\n        const header = path.multispace.header;\n        if (typeof header == 'function') {\n            MultispaceHeader = header;\n        }\n    }\n    if (path.multispace?.footer) {\n        const footer = path.multispace.footer;\n        if (typeof footer == 'function') {\n            MultispaceFooter = footer;\n        }\n    }\n\n    PluridSpaces = () => (\n        <StyledSpaces\n            alignment={multispaceAlignment}\n            snapType={multispaceSnapType}\n            data-plurid-entity={PLURID_ENTITY_MULTISPACE}\n        >\n            {MultispaceHeader && (\n                <MultispaceHeader />\n            )}\n\n            {spacesArray}\n\n            {MultispaceFooter && (\n                <MultispaceFooter />\n            )}\n        </StyledSpaces>\n    );\n\n    const Component = (\n        <>\n            {exterior && (\n                <PluridExterior\n                    spaces={slotted ? spacesArray : undefined}\n                    plurid={pluridProperty}\n                />\n            )}\n\n            {\n                (spaces || planes)\n                && !slotted\n                && (\n                    <PluridSpaces />\n                )\n            }\n        </>\n    );\n    return Component;\n}\n\n\nexport interface GetGatewayViewData {\n    queryString: string;\n    routes: PluridRoute<PluridReactComponent>[];\n    gatewayPath: string | undefined;\n    gatewayExterior: any;\n    protocol: string;\n    host: string;\n}\n\nexport const getGatewayView = (\n    data: GetGatewayViewData,\n) => {\n    const {\n        queryString,\n        routes,\n        gatewayPath,\n        gatewayExterior,\n        protocol,\n        host,\n    } = data\n\n    const query = routing.extractQuery(queryString);\n\n    const gatewayView: string[] = [];\n\n    if (query.plurid) {\n        gatewayView.push(query.plurid);\n    }\n\n    if (query.plurids) {\n        const gatewayViews = query.plurids.split(',');\n        gatewayView.push(...gatewayViews);\n    }\n\n    const planes: PluridPlane<PluridReactComponent>[] = [];\n    const view: string[] = [];\n\n    for (const path of routes) {\n        if (path.spaces) {\n            const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                ? PLURID_ROUTE_DEFAULT_PATH\n                : utilities.cleanPathElement(path.value);\n\n            for (const space of path.spaces) {\n                const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                    ? PLURID_ROUTE_DEFAULT_SPACE\n                    : utilities.cleanPathElement(space.value);\n\n                if (space.universes) {\n                    for (const universe of space.universes) {\n                        const universeName = universe.value === PLURID_ROUTE_DEFAULT_UNIVERSE_VALUE\n                            ? PLURID_ROUTE_DEFAULT_UNIVERSE\n                            : utilities.cleanPathElement(universe.value);\n\n                        if (universe.planes) {\n                            for (const plane of universe.planes) {\n                                const planeData = resolvePluridRoutePlaneData(plane);\n\n                                const {\n                                    component,\n                                    value,\n                                } = planeData;\n\n                                const planeName = utilities.cleanPathElement(value);\n\n                                const planeAddressElements = [\n                                    protocol,\n                                    host,\n                                    pathName,\n                                    spaceName,\n                                    universeName,\n                                    PLURID_ROUTE_DEFAULT_CLUSTER,\n                                    planeName,\n                                ];\n                                const planeAddress = planeAddressElements.join(PLURID_ROUTE_SEPARATOR);\n\n                                for (const gatewayViewPlane of gatewayView) {\n                                    // if (gatewayViewPlane === planeAddress) {\n                                    //     if (component.kind === 'react') {\n                                    //         const pluridPlane: PluridPlane = {\n                                    //             component: {\n                                    //                 kind: 'react',\n                                    //                 element: component.element,\n                                    //             },\n                                    //             route: planeAddress,\n                                    //         };\n\n                                    //         planes.push(pluridPlane);\n                                    //         view.push(planeAddress);\n                                    //     }\n                                    // }\n                                }\n                            }\n                        }\n                    }\n                }\n\n                if (space.planes) {\n                    for (const plane of space.planes) {\n                        const planeData = resolvePluridRoutePlaneData(plane);\n\n                        const {\n                            component,\n                            value,\n                        } = planeData;\n\n                        const planeName = utilities.cleanPathElement(value);\n\n                        const planeAddressElements = [\n                            protocol,\n                            host,\n                            pathName,\n                            spaceName,\n                            PLURID_ROUTE_DEFAULT_UNIVERSE,\n                            PLURID_ROUTE_DEFAULT_CLUSTER,\n                            planeName,\n                        ];\n                        const planeAddress = planeAddressElements.join(PLURID_ROUTE_SEPARATOR);\n\n                        for (const gatewayViewPlane of gatewayView) {\n                            // if (gatewayViewPlane === planeAddress) {\n                            //     if (component.kind === 'react') {\n                            //         const pluridPlane: PluridPlane = {\n                            //             component: {\n                            //                 kind: 'react',\n                            //                 element: component.element,\n                            //             },\n                            //             route: planeAddress,\n                            //         };\n\n                            //         planes.push(pluridPlane);\n                            //         view.push(planeAddress);\n                            //     }\n                            // }\n                        }\n                    }\n                }\n            }\n        }\n\n        if (path.planes) {\n            for (const plane of path.planes) {\n                const planeData = resolvePluridRoutePlaneData(plane);\n\n                const {\n                    component,\n                } = planeData;\n\n                const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                    ? PLURID_ROUTE_DEFAULT_PATH\n                    : utilities.cleanPathElement(path.value);\n                const spaceName = PLURID_ROUTE_DEFAULT_SPACE;\n                const universeName = PLURID_ROUTE_DEFAULT_UNIVERSE;\n                const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n                const planeName = utilities.cleanPathElement(planeData.value);\n\n                const pathDivisions = [\n                    protocol,\n                    host,\n                    pathName,\n                    spaceName,\n                    universeName,\n                    clusterName,\n                    planeName,\n                ];\n                const planeAddress = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                // if (component.kind === 'react') {\n                //     const pluridPlane: PluridPlane = {\n                //         component: {\n                //             kind: 'react',\n                //             element: component.element,\n                //         },\n                //         route: planeAddress,\n                //     };\n\n                //     planes.push(pluridPlane);\n                //     view.push(planeAddress);\n                // }\n            }\n        }\n    }\n\n    let Exterior: React.FC<any> = () => (<></>);\n    if (gatewayExterior) {\n        switch (gatewayExterior.kind) {\n            case 'react':\n                Exterior = gatewayExterior.element;\n                break;\n        }\n    }\n\n    const Component = (\n        <>\n            <Exterior />\n\n            <PluridApplication\n                planes={planes}\n                view={view}\n            />\n        </>\n    );\n\n    const gatewayRoute: routing.MatcherResponse<PluridReactComponent> = {\n        path: {\n            value: gatewayPath || 'gateway',\n        },\n        pathname: '',\n        fragments: {\n            elements: [],\n            texts: [],\n        },\n        parameters: {},\n        query: {},\n        route: '',\n    };\n\n\n    return {\n        Component,\n        gatewayRoute,\n    };\n}\n\n\nexport const collectApplicationsFromPath = async (\n    isoMatch: PluridRouteMatch,\n    protocol: string,\n    host: string,\n    globals: Record<string, string> | undefined,\n) => {\n    const parameters = {};\n    const query = {};\n    const path: any = {\n        planes: [],\n        spaces: [],\n        view: [],\n        value: '',\n    };\n    let defaultConfiguration;\n\n    if (isoMatch.kind === 'Route') {\n        let routeData: any = isoMatch.data;\n        defaultConfiguration = routeData.defaultConfiguration;\n\n        if (isoMatch.data.resolver) {\n            routeData = await isoMatch.data.resolver(globals);\n        }\n\n        path.planes = routeData.planes || [];\n        path.spaces = routeData.spaces || [];\n        path.view = routeData.view || [];\n        path.value = isoMatch.data.value || '';\n    }\n\n    // const {\n    //     path,\n    //     parameters,\n    //     query,\n    // } = matchedRoute;\n\n    const {\n        planes,\n        spaces,\n        view,\n    } = path;\n\n    const pluridProperty = {\n        path: {\n            parameters,\n            query,\n        },\n    };\n\n    const plurids: {\n        planes: PluridPlane<PluridReactComponent>[],\n        view: string[],\n        configuration?: any,\n    }[] = [];\n    if (spaces) {\n        for (const space of spaces) {\n            const planes: PluridPlane<PluridReactComponent>[] = [];\n            const view: any[] = [];\n\n            if (space.planes) {\n                for (const plane of space.planes) {\n                    const planeData = resolvePluridRoutePlaneData(plane);\n\n                    const {\n                        component,\n                    } = planeData;\n\n                    const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                        ? PLURID_ROUTE_DEFAULT_PATH\n                        : utilities.cleanPathElement(path.value);\n                    const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                        ? PLURID_ROUTE_DEFAULT_SPACE\n                        : utilities.cleanPathElement(space.value);\n                    const universeName = PLURID_ROUTE_DEFAULT_UNIVERSE;\n                    const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n                    const planeName = utilities.cleanPathElement(planeData.value);\n\n                    const pathDivisions = [\n                        protocol,\n                        host,\n                        pathName,\n                        spaceName,\n                        universeName,\n                        clusterName,\n                        planeName,\n                    ];\n                    const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                    // if (component.kind === 'react') {\n                    //     const pluridPlane: PluridPlane = {\n                    //         component: {\n                    //             kind: 'react',\n                    //             element: component.element,\n                    //             properties: {\n                    //                 plurid: pluridProperty,\n                    //             },\n                    //         },\n                    //         route: fullPath,\n                    //     };\n\n                    //     planes.push(pluridPlane);\n                    //     view.push(fullPath);\n                    // }\n                }\n            }\n\n            if (space.universes) {\n                for (const universe of space.universes) {\n                    if (universe.clusters) {\n                        for (const cluster of universe.clusters) {\n                            for (const plane of cluster.planes) {\n                                const planeData = resolvePluridRoutePlaneData(plane);\n\n                                const {\n                                    component,\n                                } = planeData;\n\n                                const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                                    ? PLURID_ROUTE_DEFAULT_PATH\n                                    : utilities.cleanPathElement(path.value);\n                                const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                                    ? PLURID_ROUTE_DEFAULT_SPACE\n                                    : utilities.cleanPathElement(space.value);\n                                const universeName = universe.value === PLURID_ROUTE_DEFAULT_UNIVERSE_VALUE\n                                    ? PLURID_ROUTE_DEFAULT_UNIVERSE\n                                    : utilities.cleanPathElement(universe.value);\n                                const clusterName = cluster.value === PLURID_ROUTE_DEFAULT_CLUSTER_VALUE\n                                    ? PLURID_ROUTE_DEFAULT_CLUSTER\n                                    : utilities.cleanPathElement(cluster.value);\n                                const planeName = utilities.cleanPathElement(planeData.value);\n\n                                const pathDivisions = [\n                                    protocol,\n                                    host,\n                                    pathName,\n                                    spaceName,\n                                    universeName,\n                                    clusterName,\n                                    planeName,\n                                ];\n                                const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                                // if (component.kind === 'react') {\n                                //     const pluridPlane: PluridPlane = {\n                                //         component: {\n                                //             kind: 'react',\n                                //             element: component.element,\n                                //             properties: {\n                                //                 plurid: pluridProperty,\n                                //             },\n                                //         },\n                                //         route: fullPath,\n                                //     };\n\n                                //     planes.push(pluridPlane);\n                                //     view.push(fullPath);\n                                // }\n                            }\n                        }\n                    }\n\n                    if (universe.planes) {\n                        for (const plane of universe.planes) {\n                            const planeData = resolvePluridRoutePlaneData(plane);\n\n                            const {\n                                component,\n                            } = planeData;\n\n                            const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                                ? PLURID_ROUTE_DEFAULT_PATH\n                                : utilities.cleanPathElement(path.value);\n                            const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                                ? PLURID_ROUTE_DEFAULT_SPACE\n                                : utilities.cleanPathElement(space.value);\n                            const universeName = universe.value === PLURID_ROUTE_DEFAULT_UNIVERSE_VALUE\n                                ? PLURID_ROUTE_DEFAULT_UNIVERSE\n                                : utilities.cleanPathElement(universe.value);\n                            const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n                            const planeName = utilities.cleanPathElement(planeData.value);\n\n                            const pathDivisions = [\n                                protocol,\n                                host,\n                                pathName,\n                                spaceName,\n                                universeName,\n                                clusterName,\n                                planeName,\n                            ];\n                            const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                            // if (component.kind === 'react') {\n                            //     const pluridPlane: PluridPlane = {\n                            //         component: {\n                            //             kind: 'react',\n                            //             element: component.element,\n                            //             properties: {\n                            //                 plurid: pluridProperty,\n                            //             },\n                            //         },\n                            //         route: fullPath,\n                            //     };\n\n                            //     planes.push(pluridPlane);\n                            //     view.push(fullPath);\n                            // }\n                        }\n                    }\n                }\n            }\n\n            const pluridApplication = {\n                planes,\n                view,\n                configuration: defaultConfiguration,\n            };\n            plurids.push(pluridApplication);\n        }\n    }\n\n    if (planes) {\n        const pluridPlanes: PluridPlane<PluridReactComponent>[] = [];\n        // const view = [];\n\n        for (const plane of planes) {\n            const planeData = resolvePluridRoutePlaneData<any>(plane);\n\n            const {\n                value,\n                component,\n            } = planeData;\n\n            const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                ? PLURID_ROUTE_DEFAULT_PATH\n                : utilities.cleanPathElement(path.value);\n            const spaceName = PLURID_ROUTE_DEFAULT_SPACE;\n            const universeName = PLURID_ROUTE_DEFAULT_UNIVERSE;\n            const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n            const planeName = utilities.cleanPathElement(planeData.value);\n\n            const pathDivisions = [\n                protocol,\n                host,\n                pathName,\n                spaceName,\n                universeName,\n                clusterName,\n                planeName,\n            ];\n            const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n            const pluridPlane: PluridPlane<PluridReactComponent> = {\n                component,\n                route: value,\n            };\n\n            pluridPlanes.push(pluridPlane);\n\n            // if (component.kind === 'react') {\n            //     const pluridPlane: PluridPlane = {\n            //         component: {\n            //             kind: 'react',\n            //             element: component.element,\n            //             properties: {\n            //                 plurid: pluridProperty,\n            //             },\n            //         },\n            //         route: fullPath,\n            //     };\n\n            //     pluridPlanes.push(pluridPlane);\n            //     // view.push(fullPath);\n            // }\n        }\n\n        const pluridApplication = {\n            planes: pluridPlanes,\n            view,\n            configuration: defaultConfiguration,\n        };\n        plurids.push(pluridApplication);\n    }\n\n    return plurids;\n}\n\n\n\n\n\nexport const gatherPluridPlanes = (\n    routes: PluridRoute<PluridReactComponent>[],\n    planes: PluridRoutePlane<PluridReactComponent>[] | undefined,\n) => {\n    const pluridPlanes: PluridPlane<PluridReactComponent>[] = [];\n\n    for (const route of routes) {\n        if (route.planes) {\n            for (const plane of route.planes) {\n                const planeData = resolvePluridRoutePlaneData(plane);\n\n                const planeRoute = planeData.link\n                    ? planeData.link\n                    : planeData.value.startsWith('/')\n                        ? planeData.value\n                        : route.value + '/' + planeData.value;\n\n                const pluridPlane: PluridReactPlane = {\n                    route: planeRoute,\n                    component: planeData.component,\n                    ...(planeData.head ? { head: planeData.head } : {}),\n                };\n                pluridPlanes.push(pluridPlane);\n            }\n        }\n\n        if (route.spaces) {\n            // gather planes from spaces\n        }\n    }\n\n    if (planes) {\n        for (const plane of planes) {\n            const planeData = resolvePluridRoutePlaneData(plane);\n\n            const pluridPlane: PluridReactPlane = {\n                route: planeData.value,\n                component: planeData.component,\n                ...(planeData.head ? { head: planeData.head } : {}),\n            };\n            pluridPlanes.push(pluridPlane);\n        }\n    }\n\n    return pluridPlanes;\n}\n\n\nexport const renderMultispace = (\n    matchedRoute: PluridRouteMatch,\n    hostname = 'origin',\n) => {\n    if (matchedRoute.kind !== 'Route') {\n        return () => () => (<></>);\n    }\n\n    const protocol = 'http';\n    const host = hostname;\n\n    const {\n        match,\n        data: path,\n    } = matchedRoute;\n\n    const {\n        parameters,\n        query,\n    } = match;\n\n    const pluridRouteProperty: PluridRouteComponentProperty = {\n        value: match.value,\n        parameters,\n        query,\n    };\n\n    const {\n        exterior,\n        planes,\n        spaces,\n        slotted,\n    } = matchedRoute.data;\n\n    const multispaceAlignment = path.multispace?.alignment || 'y';\n    const multispaceSnapType = path.multispace?.snapType || 'mandatory';\n\n    let PluridExterior: React.FC<any> = () => (<></>);\n    if (isReactRenderable(exterior)) {\n        PluridExterior = exterior as any;\n    }\n\n    let PluridSpaces: React.FC<any> = () => (<></>);\n    const spacesArray: any[] = [];\n    if (spaces) {\n        for (const space of spaces) {\n            const planes: PluridPlane<PluridReactComponent>[] = [];\n            const view: any[] = [];\n\n            if (space.planes) {\n                for (const plane of space.planes) {\n                    const planeData = resolvePluridRoutePlaneData<React.FC<any>>(plane as any);\n\n                    const {\n                        component,\n                    } = planeData;\n\n                    const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                        ? PLURID_ROUTE_DEFAULT_PATH\n                        : utilities.cleanPathElement(path.value);\n                    const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                        ? PLURID_ROUTE_DEFAULT_SPACE\n                        : utilities.cleanPathElement(space.value);\n                    const universeName = PLURID_ROUTE_DEFAULT_UNIVERSE;\n                    const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n                    const planeName = utilities.cleanPathElement(planeData.value);\n\n                    const pathDivisions = [\n                        protocol,\n                        host,\n                        pathName,\n                        spaceName,\n                        universeName,\n                        clusterName,\n                        planeName,\n                    ];\n                    const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                    const pluridPlane: PluridReactPlane = {\n                        component,\n                        // plurid: pluridProperty,\n                        route: fullPath,\n                    };\n\n                    planes.push(pluridPlane);\n                    view.push(fullPath);\n                }\n            }\n\n            if (space.universes) {\n                for (const universe of space.universes) {\n                    if (universe.planes) {\n                        for (const plane of universe.planes) {\n                            const planeData = resolvePluridRoutePlaneData<any>(plane);\n\n                            const {\n                                component,\n                            } = planeData;\n\n                            const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                                ? PLURID_ROUTE_DEFAULT_PATH\n                                : utilities.cleanPathElement(path.value);\n                            const spaceName = space.value === PLURID_ROUTE_DEFAULT_SPACE_VALUE\n                                ? PLURID_ROUTE_DEFAULT_SPACE\n                                : utilities.cleanPathElement(space.value);\n                            const universeName = universe.value === PLURID_ROUTE_DEFAULT_UNIVERSE_VALUE\n                                ? PLURID_ROUTE_DEFAULT_UNIVERSE\n                                : utilities.cleanPathElement(universe.value);\n                            const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n                            const planeName = utilities.cleanPathElement(planeData.value);\n\n                            const pathDivisions = [\n                                protocol,\n                                host,\n                                pathName,\n                                spaceName,\n                                universeName,\n                                clusterName,\n                                planeName,\n                            ];\n                            const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n                            const pluridPlane: PluridReactPlane = {\n                                component,\n                                // plurid: pluridProperty,\n                                route: fullPath,\n                            };\n\n                            planes.push(pluridPlane);\n                            view.push(fullPath);\n                        }\n                    }\n                }\n            }\n\n            // console.log('spaces path.value', path.value);\n            // console.log('getComponentFromRoute spaces view', view);\n            const pluridPlanesRegistrar = new PluridPlanesRegistrar<PluridReactComponent>(\n                [],\n                'localhost:63000',\n            );\n\n            const App = (\n                <PluridApplication\n                    key={uuid.generate()}\n                    id={space.id ?? routeApplicationID(path) + '#' + space.value}\n                    planes={planes}\n                    view={view}\n                    configuration={space.configuration}\n                    planesRegistrar={pluridPlanesRegistrar}\n                    hostname={hostname}\n                />\n            );\n            spacesArray.push(App);\n        }\n    }\n\n    if (planes) {\n        const pluridPlanes: PluridPlane<PluridReactComponent>[] = [];\n        const view: any[] = [];\n\n        for (const plane of planes) {\n            const planeData = resolvePluridRoutePlaneData<any>(plane);\n\n            const {\n                component,\n            } = planeData;\n\n            const pathName = path.value === PLURID_ROUTE_DEFAULT_PATH_VALUE\n                ? PLURID_ROUTE_DEFAULT_PATH\n                : utilities.cleanPathElement(path.value);\n            const spaceName = PLURID_ROUTE_DEFAULT_SPACE;\n            const universeName = PLURID_ROUTE_DEFAULT_UNIVERSE;\n            const clusterName = PLURID_ROUTE_DEFAULT_CLUSTER;\n            const planeName = utilities.cleanPathElement(planeData.value);\n\n            const pathDivisions = [\n                protocol,\n                host,\n                pathName,\n                spaceName,\n                universeName,\n                clusterName,\n                planeName,\n            ];\n            const fullPath = pathDivisions.join(PLURID_ROUTE_SEPARATOR);\n\n            const pluridPlane: PluridReactPlane = {\n                component,\n                // plurid: pluridProperty,\n                route: fullPath,\n            };\n\n            pluridPlanes.push(pluridPlane);\n\n            if (!path.view) {\n                view.push(fullPath);\n            } else {\n                if (path.view.includes(planeData.value)) {\n                    view.push(fullPath);\n                }\n            }\n        }\n\n        const App = (\n            <PluridApplication\n                key={uuid.generate()}\n                id={routeApplicationID(path)}\n                planes={pluridPlanes}\n                view={view}\n                configuration={path.defaultConfiguration}\n                hostname={hostname}\n            />\n        );\n        spacesArray.push(App);\n    }\n\n\n    let MultispaceHeader: React.FC<any>;\n    let MultispaceFooter: React.FC<any>;\n    if (isReactRenderable(path.multispace?.header)) {\n        MultispaceHeader = path.multispace?.header as any;\n    }\n    if (isReactRenderable(path.multispace?.footer)) {\n        MultispaceFooter = path.multispace?.footer as any;\n    }\n\n\n    PluridSpaces = () => (\n        <StyledSpaces\n            alignment={multispaceAlignment}\n            snapType={multispaceSnapType}\n            data-plurid-entity={PLURID_ENTITY_MULTISPACE}\n        >\n            {MultispaceHeader && (\n                <MultispaceHeader\n                    plurid={pluridRouteProperty}\n                />\n            )}\n\n            {spacesArray}\n\n            {MultispaceFooter && (\n                <MultispaceFooter\n                    plurid={pluridRouteProperty}\n                />\n            )}\n        </StyledSpaces>\n    );\n\n    return (): React.FC<any> => {\n        const PluridRoute = () => (\n            <>\n                {exterior && (\n                    <PluridExterior\n                        spaces={slotted ? spacesArray : undefined}\n                        plurid={pluridRouteProperty}\n                    />\n                )}\n\n                {\n                    (spaces || planes)\n                    && !slotted\n                    && (\n                        <PluridSpaces />\n                    )\n                }\n            </>\n        );\n\n        return PluridRoute;\n    }\n}\n\n\nexport const computePluridRoute = (\n    matchedRoute: PluridRouteMatch | undefined,\n    planesRegistrar: planes.Registrar<PluridReactComponent>,\n    isoMatcher: routing.IsoMatcher<PluridReactComponent>,\n    directPlane?: PluridRouteMatch,\n    hostname = 'origin',\n    /** The router's bus, when the host gave it one: the route's application and its exterior share it. */\n    routerPubSub?: IPluridPubSub,\n) => {\n    if (\n        directPlane\n        || matchedRoute?.kind === 'RoutePlane'\n    ) {\n        const match = directPlane || matchedRoute;\n        if (!match) {\n            return () => () => (<></>);\n        }\n        // console.log('Render Direct Plane directPlane', directPlane);\n        // console.log('Render Direct Plane matchedRoute', matchedRoute);\n\n        const DirectPlane = renderDirectPlane(\n            match,\n            planesRegistrar,\n            hostname,\n        );\n\n        return DirectPlane;\n    }\n\n    if (!matchedRoute) {\n        // Handle not found.\n        const notFoundRoute = isoMatcher.match('/not-found', 'route');\n        if (notFoundRoute && notFoundRoute.kind === 'Route') {\n            const notFoundRender: any = computePluridRoute(\n                notFoundRoute,\n                planesRegistrar,\n                isoMatcher,\n                undefined,\n                hostname,\n            );\n\n            return notFoundRender as any;\n        }\n\n        return () => () => (<></>);\n    }\n\n\n    const {\n        exterior,\n        view,\n        planes,\n        spaces,\n        defaultConfiguration,\n        slotted,\n    } = matchedRoute.data;\n    // (a route's `resolver` is the server's, given its globals: the browser called it with none and\n    // threw the result away, 2026-10-20)\n\n\n    const pluridRouteProperty: PluridRouteComponentProperty = {\n        value: matchedRoute.match.value,\n        parameters: matchedRoute.match.parameters,\n        query: matchedRoute.match.query,\n    };\n\n\n    let PluridRouteExterior: React.FC<any> | undefined;\n    if (isReactRenderable(exterior)) {\n        PluridRouteExterior = exterior as any;\n        if (PluridRouteExterior) {\n            PluridRouteExterior.displayName = 'PluridRouteExterior';\n        }\n    }\n\n\n    // Render only the exterior of the route.\n    if (\n        exterior\n        && PluridRouteExterior\n        && !view\n        && !planes\n        && !spaces\n    ) {\n        return (): React.FC<any> => {\n            const PluridRoute = () => (\n                <>\n                    {PluridRouteExterior && (\n                        <PluridRouteExterior\n                            plurid={pluridRouteProperty}\n                        />\n                    )}\n                </>\n            );\n\n            return PluridRoute;\n        };\n    }\n\n\n    // Render a single Plurid Application in the route.\n    if (\n        view\n    ) {\n        return (): React.FC<any> => {\n            // the router's bus when the host gave one (the readiness contract: one bus for every\n            // route), else this route's own — the application and its exterior share it either way\n            const pubsub = routerPubSub ?? new PluridPubSub();\n\n            const space = matchedRoute.data.value;\n\n            const pluridApplication = (\n                <PluridApplication\n                    id={routeApplicationID(matchedRoute.data)}\n                    view={view}\n                    planesRegistrar={planesRegistrar}\n                    configuration={defaultConfiguration}\n                    pubsub={pubsub}\n                    matchedRoute={matchedRoute}\n                    hostname={hostname}\n                    space={space}\n                />\n            );\n\n            const PluridRoute = () => (\n                <>\n                    {PluridRouteExterior && (\n                        <PluridRouteExterior\n                            plurid={pluridRouteProperty}\n                            pubsub={pubsub}\n                            spaces={slotted ? [pluridApplication] : undefined}\n                        />\n                    )}\n\n                    {!slotted && (\n                        <>\n                            {pluridApplication}\n                        </>\n                    )}\n                </>\n            );\n\n            return PluridRoute;\n        };\n    }\n\n\n    // Render a multispace route.\n    return renderMultispace(\n        matchedRoute,\n    );\n}\n\n\nexport const computeInitialMatchedPath = (\n    staticContext?: PluridRouterStatic,\n): string => {\n    // the matched path is the location, pathname + search, on both sides\n    if (staticContext) {\n        return staticContext.path + (staticContext.search ?? '');\n    }\n\n    if (typeof window !== 'undefined') {\n        return window.location.pathname + window.location.search;\n    }\n\n    return '/';\n}\n\n\nexport const getDirectPlaneMatch = (\n    matchedPath: string,\n    routes: PluridRoute<PluridReactComponent>[],\n    planes: PluridRoutePlane<PluridReactComponent>[] | undefined,\n) => {\n    let matchRoute: PluridRoute<PluridReactComponent> | undefined;\n    let matchPlane: PluridRoutePlane<PluridReactComponent> | undefined;\n    let matchPath: string | undefined;\n\n    for (const route of routes) {\n        if (route.planes) {\n            for (const plane of route.planes) {\n                const planeData = resolvePluridRoutePlaneData(plane);\n\n                const planePath = route.value === '/'\n                    ? planeData.value\n                    : route.value + planeData.value;\n                matchPath = planePath;\n\n                if (matchedPath === planePath) {\n                    matchPlane = plane;\n                    break;\n                }\n            }\n        }\n\n        if (matchPlane) {\n            matchRoute = route;\n            break;\n        }\n    }\n\n    if (planes) {\n        for (const plane of planes) {\n            const planeData = resolvePluridRoutePlaneData(plane);\n\n            if (matchedPath === planeData.value) {\n                matchPlane = plane;\n                break;\n            }\n        }\n    }\n\n    return {\n        matchRoute,\n        matchPlane,\n        matchPath,\n    };\n}\n\n\nexport const renderDirectPlane = (\n    routePlane: PluridRouteMatch,\n    planesRegistrar: planes.Registrar<PluridReactComponent>,\n    hostname = 'origin',\n) => {\n    if (routePlane.match.query.flat) {\n        const flat = routePlane.match.query.flat.toLowerCase();\n        const renderFlat = flat === 'true' || flat === '1';\n\n        if (renderFlat) {\n            const pluridRoute = planesRegistrar.get(routePlane.match.value);\n\n            if (pluridRoute) {\n                const Flat = pluridRoute.component;\n                if (typeof Flat !== 'function') {\n                    return () => () => (<></>);\n                }\n\n                const DirectPlane = (): any => {\n                    const PluridRoute = () => (\n                        <>\n                            <Flat />\n                        </>\n                    );\n\n                    return PluridRoute;\n                };\n\n                return DirectPlane;\n            }\n        }\n    }\n\n    // let matchedPlane: router.MatcherResponse<PluridReactComponent> | undefined;\n    const {\n        defaultConfiguration,\n    } = routePlane?.data as any;\n\n    const DirectPlane = (): any => {\n        const PluridRoute = () => (\n            <>\n                <PluridApplication\n                    view={[\n                        routePlane.match.value,\n                    ]}\n                    planesRegistrar={planesRegistrar}\n                    configuration={defaultConfiguration}\n                    hostname={hostname}\n                />\n            </>\n        );\n\n        return PluridRoute;\n    };\n\n    return DirectPlane;\n\n    // const {\n    //     matchRoute,\n    //     matchPlane,\n    //     matchPath,\n    // } = getDirectPlaneMatch(\n    //     matchedPath,\n    //     routes,\n    //     planes,\n    // );\n    // console.log(\n    //     'renderDirectPlane',\n    //     matchRoute,\n    //     matchPlane,\n    //     matchPath,\n    // );\n\n    // if (matchRoute) {\n    //     const parsedRoute = new router.RouteParser(\n    //         matchedPath,\n    //         matchRoute,\n    //     );\n    //     matchedPlane = parsedRoute.extract();\n    // }\n\n    // if (\n    //     matchRoute && matchPlane && matchPath\n    // ) {\n    //     DirectPlane = (): any => {\n    //         const PluridRoute = () => (\n    //             <>\n    //                 <PluridApplication\n    //                     view={matchPath\n    //                         ? [\n    //                             matchPath,\n    //                         ] : []\n    //                     }\n    //                     planesRegistrar={planesRegistrar}\n    //                 />\n    //             </>\n    //         );\n\n    //         return PluridRoute;\n    //     };\n    // }\n\n    // return {\n    //     matchedPlane,\n    //     DirectPlane,\n    // };\n}\n// #endregion module\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport const PluridScrollTop = styled.div`\n    height: 0;\n    width: 0;\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n    // #region libraries\n// #region imports\n\n\n\n// #region module\nexport interface IStyledFadeIn {\n}\n\nexport const StyledFadeIn = styled.div<IStyledFadeIn>`\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    background-color: black;\n    pointer-events: none;\n    z-index: 999999;\n`;\n// #region module\n","// #region imports\n    // #region libraries\n    import React, {\n        useState,\n        useEffect,\n        useContext,\n    } from 'react';\n    // #endregion libraries\n\n\n    // #region external\n    import PluridProviderContext from '~containers/Provider/context';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledFadeIn,\n    } from './styled';\n    // #endregion internal\n// #region imports\n\n\n\n// #region module\nexport interface FadeInProperties {\n    time: number;\n}\n\nconst FadeIn: React.FC<FadeInProperties> = (\n    properties,\n) => {\n    // #region properties\n    const {\n        time,\n    } = properties;\n\n    // A server-rendered page is its own first paint: covered until the script ran, every one painted\n    // black (2026-09-29). The metastate is the server's, and the kit's client hydrates under the same\n    // one, so neither side renders the cover.\n    const serverRendered = useContext(PluridProviderContext) !== undefined;\n    // #endregion properties\n\n\n    // #region state\n    const [\n        fadedIn,\n        setFadedIn,\n    ] = useState(false);\n    // #endregion state\n\n\n    // #region effects\n    useEffect(() => {\n        if (time > 0) {\n            setTimeout(() => {\n                setFadedIn(true);\n            }, time);\n        }\n    }, []);\n    // #endregion effects\n\n\n    // #region render\n    if (fadedIn || time === 0 || serverRendered) {\n        return (<></>);\n    }\n\n    return (\n        <StyledFadeIn\n            data-plurid-cover=\"\"\n        />\n    );\n    // #endregion render\n}\n// #endregion module\n\n\n\n// #region exports\nexport default FadeIn;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import React, {\n        useRef,\n        useState,\n        useEffect,\n        useContext,\n        useMemo,\n        useCallback,\n    } from 'react';\n\n\n    import {\n        pluridRouterNavigate,\n    } from '@plurid/plurid-engine';\n    import {\n        storage,\n    } from '@plurid/plurid-functions';\n\n    import {\n        /** constants */\n        PLURID_ROUTER_LOCATION_CHANGED,\n        PLURID_ROUTER_LOCATION_STORED,\n        PLURID_ROUTER_STORAGE,\n\n        /** interfaces */\n        PluridRouterProperties as PluridRouterBrowserOwnProperties,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactComponent,\n        PluridRouteMatch,\n    } from '~data/interfaces';\n\n    import {\n        gatherPluridPlanes,\n        computePluridRoute,\n        computeInitialMatchedPath,\n        renderDirectPlane,\n    } from '~services/logic/router';\n\n    import {\n        isReactRenderable,\n    } from '~services/utilities/react';\n\n    import {\n        PluridPlanesRegistrar,\n        PluridIsoMatcher,\n    } from '~services/engine';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        PluridScrollTop,\n    } from './styled';\n\n    import FadeIn from './FadeIn';\n    // #endregion internal\n    import PluridDocumentRegistryContext from '~services/document/context';\n    import {\n        resolvePlaneDocument,\n    } from '~components/utilities/Document/Planes';\n    // #region internal\n    import PluridRouterContext from './context';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\n/**\n * The shell when the host gives none. AT MODULE SCOPE: declared inside the render, it was a new\n * component type on every render, so React unmounted and remounted everything under it — the\n * routed application with its camera, spawned planes, selection and history — whenever the host\n * re-rendered the router (a theme toggle, an auth change).\n */\nconst DefaultRouterShell: React.FC<any> = ({\n    children,\n}) => (<>{children}</>);\nDefaultRouterShell.displayName = 'PluridRouterShell';\n\n\nconst PluridRouterBrowser = (\n    properties: PluridRouterBrowserOwnProperties<PluridReactComponent>,\n) => {\n    // #region properties\n    const {\n        routes,\n        planes,\n        exterior,\n        shell,\n        hostname,\n        scrollToTop,\n        fadeIn: fadeInProperty,\n\n        static: staticContext,\n\n        view: cleanNavigationView,\n        cleanNavigation,\n        notFoundPath: notFoundPathProperty,\n        onReady,\n        pubsub: routerPubSub,\n    } = properties;\n    // console.log('staticContext', staticContext)\n\n    // the location handler is subscribed once: it reads the CURRENT props through this ref, never\n    // the first render's (a host may change `cleanNavigation`, `view` or `scrollToTop` after mount)\n    const latest = useRef({ cleanNavigation, cleanNavigationView, scrollToTop });\n    latest.current = { cleanNavigation, cleanNavigationView, scrollToTop };\n    /** THE READINESS CONTRACT: one stable `onReady` for the route's application, calling the host's current one. */\n    const onReadyRef = useRef(onReady);\n    onReadyRef.current = onReady;\n    const routerOnReady = useCallback((api: Parameters<NonNullable<typeof onReady>>[0]) => {\n        onReadyRef.current?.(api);\n    }, []);\n\n    const notFoundPath = notFoundPathProperty || '/not-found';\n    const fadeIn = fadeInProperty ?? 10;\n\n    // #endregion properties\n\n\n    // #region references\n    const topContainer = useRef<HTMLDivElement>(null);\n\n    // THE CURRENT ROUTES (2026-10-20): built from the first render's `routes`, `planes` and\n    // `hostname` (and constructed and thrown away again on every render after), the registrar and the\n    // matcher never matched a route a host added later. Built again when one of the three changes.\n    const pluridPlanesRegistrar = useMemo(\n        () => new PluridPlanesRegistrar(\n            gatherPluridPlanes(\n                routes,\n                planes,\n            ),\n            hostname,\n        ),\n        [routes, planes, hostname],\n    );\n\n    const pluridIsoMatcher = useMemo(\n        () => new PluridIsoMatcher(\n            {\n                routes,\n                routePlanes: planes,\n            },\n            hostname,\n        ),\n        [routes, planes, hostname],\n    );\n    // #endregion references\n\n\n    // #region state\n    const [\n        matchedPath,\n        setMatchedPath,\n    ] = useState(\n        computeInitialMatchedPath(\n            staticContext,\n        ),\n    );\n\n    // the route at boot is resolved as a navigation resolves one: an unmatched path is the\n    // not-found route (the host's `notFoundPath`), not nothing\n    const [\n        matchedRoute,\n        setMatchedRoute,\n    ] = useState<PluridRouteMatch | undefined>(\n        () => pluridIsoMatcher.match(matchedPath, 'route')\n            ?? pluridIsoMatcher.match(notFoundPath, 'route'),\n    );\n    // console.log('matchedRoute', matchedRoute);\n\n    // The route layer of the document head: the matched route's (or route plane's) `head`,\n    // resolved synchronously on the client (a Promise result keeps the server-rendered head).\n    const documentRegistry = useContext(PluridDocumentRegistryContext);\n    const routeDocument = useMemo(() => {\n        const source = matchedRoute?.data?.head;\n        return source\n            ? resolvePlaneDocument(source, {\n                route: matchedRoute!.match.value,\n                parameters: matchedRoute!.match.parameters ?? {},\n                query: matchedRoute!.match.query ?? {},\n            })\n            : undefined;\n    }, [matchedRoute]);\n    if (documentRegistry && !documentRegistry.server) {\n        // during render (idempotent by value), so a hydration render already holds the route's head\n        documentRegistry.setBase('route', routeDocument);\n    }\n\n    const [\n        PluridRoute,\n        setPluridRoute,\n    ] = useState<React.FC<any>>(\n        computePluridRoute(\n            matchedRoute,\n            pluridPlanesRegistrar,\n            pluridIsoMatcher,\n            staticContext && staticContext.directPlane\n                ? pluridIsoMatcher.match(\n                    staticContext.directPlane,\n                    'route',\n                ) : undefined,\n            hostname,\n            routerPubSub,\n        ),\n    );\n    // #endregion state\n\n\n    // #region handlers\n    const scrollTop = () => {\n        const { scrollToTop } = latest.current;\n        if (!topContainer.current || scrollToTop === false) {\n            return;\n        }\n\n        const behavior = (\n            typeof scrollToTop === 'undefined'\n            || scrollToTop === true\n            || scrollToTop === 'smooth'\n        ) ? 'smooth' as const : 'auto' as const;\n\n        topContainer.current.scrollIntoView({\n            behavior,\n        });\n    }\n\n    const handleLocation = (\n        event?: any,\n    ) => {\n        let matchedPath: string | undefined;\n        const { cleanNavigation, cleanNavigationView } = latest.current;\n\n        if (\n            event && event.detail && event.detail.path\n            && !matchedPath\n        ) {\n            matchedPath = event.detail.path;\n        }\n\n\n        if (\n            cleanNavigation && cleanNavigationView\n            && !matchedPath\n        ) {\n            matchedPath = cleanNavigationView;\n        }\n\n\n        const pathname = window.location.pathname;\n\n        if (!matchedPath) {\n            matchedPath = pathname + window.location.search;\n        }\n\n\n        setMatchedPath(matchedPath);\n        scrollTop();\n    }\n    // #endregion handlers\n\n\n    // #region effects\n    // Handle location.\n    useEffect(() => {\n        window.addEventListener('popstate', handleLocation);\n        window.addEventListener(PLURID_ROUTER_LOCATION_CHANGED, handleLocation);\n\n        return () => {\n            window.removeEventListener('popstate', handleLocation);\n            window.removeEventListener(PLURID_ROUTER_LOCATION_CHANGED, handleLocation);\n        };\n    }, []);\n\n\n    // THE PATH THE ROUTE ON SCREEN WAS COMPUTED FOR. A route is computed again only when the path\n    // changes: every computation is a new component type, and the first re-render after mount used\n    // to recompute it for the same path (the effect was gated on a `useMounted` ref that flips\n    // after the first render), remounting the application a host had just been handed.\n    //\n    // THE ROUTES CHANGED: the path is matched again, and routed again only when it now matches\n    // another route (a host's new array of the same routes, the common re-render, remounts nothing).\n    const routedPath = useRef(matchedPath);\n    const routedMatcher = useRef(pluridIsoMatcher);\n    useEffect(() => {\n        if (routedPath.current === matchedPath) {\n            if (routedMatcher.current === pluridIsoMatcher) {\n                return;\n            }\n            routedMatcher.current = pluridIsoMatcher;\n            const rematched = pluridIsoMatcher.match(matchedPath, 'route')\n                ?? pluridIsoMatcher.match(notFoundPath, 'route');\n            if (\n                rematched?.kind === matchedRoute?.kind\n                && rematched?.match.value === matchedRoute?.match.value\n            ) {\n                return;\n            }\n        }\n        routedPath.current = matchedPath;\n        routedMatcher.current = pluridIsoMatcher;\n\n        if (!cleanNavigation) {\n            // Compare the FULL current URL (pathname + search) against `matchedPath` — which\n            // already includes the search (see where it's built) — so a query-bearing URL no\n            // longer pushes a spurious history entry on mount. Use `window.`-qualified globals\n            // rather than the bare `location`/`history` references.\n            const currentUrl = window.location.pathname + window.location.search;\n            if (currentUrl !== matchedPath) {\n                window.history.pushState(null, '', matchedPath);\n            }\n        }\n\n        let nextRoute = pluridIsoMatcher.match(matchedPath, 'route');\n\n        // Handle direct plane access.\n        if (\n            nextRoute\n            && nextRoute.kind === 'RoutePlane'\n        ) {\n           const DirectPlane = renderDirectPlane(\n                nextRoute,\n                pluridPlanesRegistrar,\n                hostname,\n            );\n\n            setMatchedRoute(nextRoute);\n            setPluridRoute(DirectPlane);\n            return;\n        }\n\n        // Handle not found.\n        if (!nextRoute) {\n            nextRoute = pluridIsoMatcher.match(notFoundPath, 'route');\n        }\n\n        setMatchedRoute(nextRoute);\n        setPluridRoute(\n            computePluridRoute(\n                nextRoute,\n                pluridPlanesRegistrar,\n                pluridIsoMatcher,\n                undefined,\n                hostname,\n                routerPubSub,\n            ),\n        );\n    }, [\n        matchedPath,\n        pluridIsoMatcher,\n    ]);\n\n\n    useEffect(() => {\n        if (!matchedRoute) {\n            return;\n        }\n\n        if (matchedRoute.kind !== 'Route') {\n            return;\n        }\n\n        const path = matchedRoute.match.value;\n\n        storage.saveState(\n            path,\n            PLURID_ROUTER_STORAGE,\n        );\n\n        const locationStoredEvent = new CustomEvent(\n            PLURID_ROUTER_LOCATION_STORED,\n            {\n                detail: {\n                    path,\n                },\n            },\n        );\n        window.dispatchEvent(locationStoredEvent);\n    }, [\n        cleanNavigation,\n        matchedRoute,\n    ]);\n    // #endregion effects\n\n\n    // #region render\n    let PluridRouterExterior: React.FC<any> | undefined;\n    if (isReactRenderable(exterior)) {\n        PluridRouterExterior = exterior as any;\n        if (PluridRouterExterior) {\n            PluridRouterExterior.displayName = 'PluridRouterExterior';\n        }\n    }\n\n    const PluridRouterShell: React.FC<any> = isReactRenderable(shell)\n        ? shell as any\n        : DefaultRouterShell;\n\n    // the pathname is the router's: an application inside a route reads this (its address-bar binding\n    // rides a query parameter instead) and takes the router's `onReady` and bus\n    const routerContextValue = useMemo(() => ({\n        path: matchedPath,\n        navigate: pluridRouterNavigate,\n        onReady: routerOnReady,\n        pubsub: routerPubSub,\n        hostname,\n    }), [matchedPath, routerOnReady, routerPubSub, hostname]);\n\n    return (\n        <PluridRouterContext.Provider value={routerContextValue}>\n            <FadeIn\n                time={fadeIn}\n            />\n\n            <PluridScrollTop\n                ref={topContainer}\n            />\n\n            {PluridRouterExterior && (\n                <PluridRouterExterior\n                    matchedRoute={matchedRoute}\n                />\n            )}\n\n            <PluridRouterShell\n                matchedRoute={matchedRoute}\n            >\n                <PluridRoute />\n            </PluridRouterShell>\n        </PluridRouterContext.Provider>\n    );\n    // #endregion render\n}\n// #endregion module\n\n\n\n// #region exports\nexport default PluridRouterBrowser;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import React from 'react';\n\n    import {\n        PluridRoute,\n        PluridRoutePlane,\n        PluridRouterProperties,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactComponent,\n    } from '~data/interfaces';\n\n    import PluridRouterBrowser from '~containers/RouterBrowser';\n    // #endregion external\n// #endregion imports\n\n\n\n// #region module\nexport interface PluridRouterStaticOwnProperties {\n    path: string;\n    directPlane?: string;\n    /** The request's query (`?page=…`), for THE ADDRESS BAR IS THE PAGE on the server. */\n    search?: string;\n    exterior?: PluridReactComponent;\n    shell?: PluridReactComponent;\n    routes: PluridRoute<PluridReactComponent>[];\n    planes: PluridRoutePlane<PluridReactComponent>[];\n    protocol?: string;\n    hostname?: string;\n    routerProperties?: Partial<PluridRouterProperties<PluridReactComponent>>;\n}\n\n\nconst PluridRouterStatic = (\n    properties: PluridRouterStaticOwnProperties,\n) => {\n    // #region properties\n    const {\n        path,\n        directPlane,\n        search,\n        routes,\n        planes,\n        exterior,\n        shell,\n        protocol: protocolProperty,\n        hostname: hostnameProperty,\n        routerProperties,\n    } = properties;\n\n    const protocol = protocolProperty || 'http';\n    const hostname = hostnameProperty || 'origin';\n    // #endregion properties\n\n\n    // #region render\n    return (\n        <PluridRouterBrowser\n            routes={routes}\n            planes={planes}\n            exterior={exterior}\n            shell={shell}\n            static={{\n                path,\n                directPlane,\n                search,\n            }}\n            protocol={protocol}\n            hostname={hostname}\n            {...routerProperties}\n        />\n    );\n    // #endregion render\n}\n// #endregion module\n\n\n\n// #region exports\nexport default PluridRouterStatic;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import React, {\n        Component,\n    } from 'react';\n\n    import {\n        PluridMetastate,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridDocumentRegistry,\n    } from '~services/document/registry';\n\n    import {\n        PluridDocumentScope,\n    } from '~components/utilities/Document';\n    // #endregion external\n\n\n    // #region internal\n    import PluridProviderContext from './context';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport interface PluridProviderProperties {\n    metastate: PluridMetastate | undefined;\n    /**\n     * The document registry to collect the head into — the server's per-request one. On the client\n     * the provider owns a registry and renders the document head itself.\n     */\n    documentRegistry?: PluridDocumentRegistry;\n}\n\n\nclass PluridProvider extends Component<\n    React.PropsWithChildren<PluridProviderProperties>\n> {\n    static displayName = 'PluridProvider';\n\n    private properties: React.PropsWithChildren<PluridProviderProperties>;\n\n    constructor(\n        properties: React.PropsWithChildren<PluridProviderProperties>,\n    ) {\n        super(properties);\n        this.properties = properties;\n    }\n\n    render() {\n        const {\n            metastate,\n            documentRegistry,\n            children,\n        } = this.props;\n\n        return (\n            <PluridDocumentScope\n                registry={documentRegistry}\n            >\n                <PluridProviderContext.Provider\n                    value={metastate}\n                >\n                    {children}\n                </PluridProviderContext.Provider>\n            </PluridDocumentScope>\n        );\n    }\n}\n// #endregion module\n\n\n\n// #region exports\nexport default PluridProvider;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import React from 'react';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport interface PluridProviderLayer {\n    name?: string;\n    Provider: React.ComponentType<any>;\n    properties?: Record<string, unknown>;\n}\n\n\n/**\n * Nest provider layers around `children`: `layers[0]` is the INNERMOST (closest to the\n * application), the last layer the outermost — the one composition the server render and the\n * kit client share, so a service is wired identically on both sides.\n */\nexport const composePluridProviders = (\n    layers: PluridProviderLayer[],\n    children: React.ReactNode,\n): React.ReactElement => {\n    let element: React.ReactElement = <>{children}</>;\n    for (const layer of layers) {\n        element = (\n            <layer.Provider\n                {...(layer.properties ?? {})}\n            >\n                {element}\n            </layer.Provider>\n        );\n    }\n    return element;\n};\n// #endregion module\n","// #region imports\n    // #region external\n    import {\n        PluridLinkCoordinates,\n    } from '~data/interfaces';\n    // #endregion external\n// #endregion imports\n\n\n\n// #region module\nexport const DEFAULT_ROUTER_LINK_AS_ANCHOR = true;\n\n\nexport const defaultLinkCoordinates: PluridLinkCoordinates = {\n    x: 0,\n    y: 0,\n};\n// #endregion module\n","// #region module\ntype Listener = () => void;\n\nlet observer: ResizeObserver | undefined;\nconst listeners = new Map<Element, Set<Listener>>();\n\nconst ensure = (): ResizeObserver | undefined => {\n    if (observer || typeof ResizeObserver === 'undefined') {\n        return observer;\n    }\n    observer = new ResizeObserver((entries) => {\n        for (const entry of entries) {\n            const set = listeners.get(entry.target);\n            if (!set) {\n                continue;\n            }\n            for (const listener of Array.from(set)) {\n                listener();\n            }\n        }\n    });\n    return observer;\n};\n\n\n/**\n * ONE OBSERVER FOR EVERY LINK. Each link used to construct a `ResizeObserver` of its own, one per\n * link per mount, so a page of two hundred links had two hundred observers waking on the same\n * layout pass. One observer, a set of listeners per element, disconnected when the last leaves.\n */\nexport const observeResize = (\n    element: Element,\n    listener: Listener,\n): (() => void) => {\n    const live = ensure();\n    if (!live) {\n        return () => {};\n    }\n\n    let set = listeners.get(element);\n    if (!set) {\n        set = new Set();\n        listeners.set(element, set);\n        live.observe(element);\n    }\n    set.add(listener);\n\n    return () => {\n        const current = listeners.get(element);\n        if (!current) {\n            return;\n        }\n        current.delete(listener);\n        if (current.size === 0) {\n            listeners.delete(element);\n            live.unobserve(element);\n        }\n        if (listeners.size === 0) {\n            live.disconnect();\n            observer = undefined;\n        }\n    };\n};\n\n/** how many elements are watched: for the tests */\nexport const observedElements = (): number => listeners.size;\n// #endregion module\n","// #region module\ninterface PlaneFollowers {\n    followers: Set<() => void>;\n    frame: number;\n    onScroll: () => void;\n}\n\nconst registry: WeakMap<HTMLElement, PlaneFollowers> = new WeakMap();\n\n/**\n * Follow the scrolls INSIDE a plane: one capture-phase `scroll` listener per plane element (a\n * `scroll` does not bubble; capture on the ancestor catches every scroller inside it), one\n * animation frame per plane, every open link's follower run in it. Returns the unsubscribe.\n */\nexport const followPlaneScroll = (\n    planeElement: HTMLElement,\n    follower: () => void,\n): (() => void) => {\n    let entry = registry.get(planeElement);\n    if (!entry) {\n        const created: PlaneFollowers = {\n            followers: new Set(),\n            frame: 0,\n            onScroll: () => {\n                if (created.frame || typeof requestAnimationFrame !== 'function') {\n                    return;\n                }\n                created.frame = requestAnimationFrame(() => {\n                    created.frame = 0;\n                    for (const run of created.followers) {\n                        run();\n                    }\n                });\n            },\n        };\n        planeElement.addEventListener('scroll', created.onScroll, true);\n        registry.set(planeElement, created);\n        entry = created;\n    }\n    entry.followers.add(follower);\n\n    return () => {\n        const current = registry.get(planeElement);\n        if (!current) {\n            return;\n        }\n        current.followers.delete(follower);\n        if (current.followers.size === 0) {\n            planeElement.removeEventListener('scroll', current.onScroll, true);\n            if (current.frame && typeof cancelAnimationFrame === 'function') {\n                cancelAnimationFrame(current.frame);\n            }\n            registry.delete(planeElement);\n        }\n    };\n};\n// #endregion module\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n\n    import {\n        Z_INDEX,\n    } from '~data/constants/zIndex';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridLinkCoordinates,\n    } from '~data/interfaces';\n    // #endregion external\n// #endregion imports\n\n\n\n// #region module\nexport interface IStyledPreview {\n    theme: Theme;\n    linkCoordinates: PluridLinkCoordinates;\n}\n\nexport const StyledPluridPlanePreview = styled.div<IStyledPreview>`\n    position: absolute;\n    min-width: 600px;\n    min-height: 300px;\n    z-index: ${Z_INDEX.PREVIEW};\n\n    top: ${({\n        linkCoordinates,\n    }) => {\n        const location = linkCoordinates.y;\n        return location + 'px';\n    }};\n    left: ${({\n        linkCoordinates,\n    }) => {\n        const location = linkCoordinates.x + 5;\n        return location + 'px';\n    }};\n    color: var(--plurid-ink);\n    background-color: var(--plurid-surface-solid);\n    border: 1px solid var(--plurid-rim);\n    border-radius: var(--plurid-radius-panel);\n    box-shadow: 0 0 0 1px var(--plurid-halo), var(--plurid-shadow);\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React, {\n        useContext,\n    } from 'react';\n\n    import {\n        AnyAction,\n        ThunkDispatch,\n    } from '@reduxjs/toolkit';\n    import { connect } from 'react-redux';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridLinkCoordinates,\n    } from '~data/interfaces';\n\n    import Context from '~services/context';\n\n    import { AppState } from '~services/state/store';\n    import StateContext from '~services/state/context';\n    import selectors from '~services/state/selectors';\n    // import actions from '~services/state/actions';\n\n    import {\n        getPlanesRegistrar,\n    } from '~services/engine';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledPluridPlanePreview,\n    } from './styled';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport interface PluridPlanePreviewOwnProperties {\n    planeRoute: string;\n    linkCoordinates: PluridLinkCoordinates;\n    previewOffsetX: number | undefined;\n    previewOffsetY: number | undefined;\n    previewComponent: any;\n}\n\nexport interface PluridPlanePreviewStateProperties {\n    stateGeneralTheme: Theme;\n    stateInteractionTheme: Theme;\n}\n\nexport interface PluridPlanePreviewDispatchProperties {\n}\n\nexport type PluridPlanePreviewProperties =\n    & PluridPlanePreviewOwnProperties\n    & PluridPlanePreviewStateProperties\n    & PluridPlanePreviewDispatchProperties;\n\n\nconst PluridPlanePreview: React.FC<PluridPlanePreviewProperties> = (\n    properties,\n) => {\n    // #region properties\n    const {\n        // #region own\n        planeRoute,\n        linkCoordinates,\n        previewComponent,\n        previewOffsetX,\n        previewOffsetY,\n        // #endregion own\n\n        // #region state\n        stateGeneralTheme,\n        // stateInteractionTheme,\n        // #endregion state\n    } = properties;\n\n    const resolvedLinkCoordinates = {\n        x: linkCoordinates.x + (previewOffsetX ?? 0),\n        y: linkCoordinates.y + (previewOffsetY ?? 0),\n    };\n    // #endregion properties\n\n\n    // #region context\n    const context = useContext(Context);\n    if (!context) {\n        return (<></>);\n    }\n\n    const {\n        planesRegistrar,\n    } = context;\n\n    const planesRegistry = getPlanesRegistrar(planesRegistrar);\n    if (!planesRegistry) {\n        return (<></>);\n    }\n    // #endregion context\n\n\n    // #region render\n    const plane = planesRegistry.get(planeRoute);\n    if (!plane) {\n        return (<></>);\n    }\n\n    const Component = previewComponent ?? plane.component;\n    if (typeof Component !== 'function') {\n        return (<></>);\n    }\n\n    return (\n        <StyledPluridPlanePreview\n            theme={stateGeneralTheme}\n            linkCoordinates={resolvedLinkCoordinates}\n        >\n            <Component />\n        </StyledPluridPlanePreview>\n    );\n    // #endregion render\n}\n\n\nconst mapStateToProperties = (\n    state: AppState,\n): PluridPlanePreviewStateProperties => ({\n    stateGeneralTheme: selectors.themes.getGeneralTheme(state),\n    stateInteractionTheme: selectors.themes.getInteractionTheme(state),\n});\n\n\nconst mapDispatchToProperties = (\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n): PluridPlanePreviewDispatchProperties => ({\n});\n\n\nconst ConnectedPluridPlanePreview = connect(\n    mapStateToProperties,\n    mapDispatchToProperties,\n    null,\n    {\n        context: StateContext,\n    },\n)(PluridPlanePreview);\n// #endregion module\n\n\n\n// #region exports\nexport default ConnectedPluridPlanePreview;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport interface IStyledPluridLink {\n    theme: Theme;\n    devisible: boolean;\n    suffix: string;\n    /** `elements.link.draggable`: a link is the space's, not a draggable browser link, unless a host says so. */\n    draggable?: boolean;\n}\n\nexport const StyledPluridLink = styled.a<IStyledPluridLink>`\n    /**\n     * Forces element to go to the second row if inlined.\n     */\n    display: inline-block;\n\n    /* A PRESS ON A LINK IS THE SPACE'S: an anchor with an href is natively draggable, so a drag\n       that starts on a link would tear a link ghost out of the plane instead of orbiting. The\n       draggable attribute carries the rule everywhere; WebKit needs the property too.\n       (No backticks in this comment: one would end the styled template.) */\n    -webkit-user-drag: ${({ draggable }) => (draggable ? 'auto' : 'none')};\n\n    cursor: pointer;\n    color: ${({\n        theme,\n    }) => {\n        return 'var(--plurid-accent)';\n    }};\n\n    &:hover {\n        color: ${({\n            theme,\n        }) => {\n            return 'var(--plurid-ink)';\n        }};\n    }\n\n    /* The link's OWN after: a bare \"::after\" is a descendant selector here, so a text link drew no\n       suffix and a link holding elements drew one after each (2026-10-20). */\n    &::after {\n        content: \"${({\n            devisible,\n            suffix,\n        }) => {\n            if (!devisible) {\n                if (suffix) {\n                    return suffix;\n                }\n                return \"'\";\n            }\n            return '';\n        }}\";\n    }\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        useState,\n        useRef,\n        useEffect,\n    } from 'react';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport interface UseLinkPreviewParameters {\n    /** The link's preview config (truthy = previews enabled). */\n    preview: unknown;\n    mouseOver: boolean;\n    appearTime: number;\n    disappearTime: number;\n}\n\n\n/**\n * The hover-preview visibility state machine for a `PluridLink`: a debounced fade-in on hover-in and\n * fade-out on hover-out, driven by `mouseOver`. Owns its own timers + `showPreview` state. Returns\n * `setShowPreview` so the plane-lifecycle handlers (spawn/toggle) can force the preview hidden.\n */\nexport const useLinkPreview = (\n    {\n        preview,\n        mouseOver,\n        appearTime,\n        disappearTime,\n    }: UseLinkPreviewParameters,\n) => {\n    const hoverInTimeout = useRef<null | ReturnType<typeof setTimeout>>(null);\n    const hoverOutTimeout = useRef<null | ReturnType<typeof setTimeout>>(null);\n    const [showPreview, setShowPreview] = useState(false);\n\n    useEffect(() => {\n        if (!preview) {\n            return;\n        }\n\n        if (mouseOver) {\n            // Hover-in: cancel a pending fade-out and schedule the fade-in. (The previous guard\n            // required a pending fade-out, so the preview never showed on the FIRST hover.)\n            if (hoverOutTimeout.current) {\n                clearTimeout(hoverOutTimeout.current);\n                hoverOutTimeout.current = null;\n            }\n            hoverInTimeout.current = setTimeout(\n                () => {\n                    setShowPreview(true);\n                },\n                appearTime,\n            );\n        }\n        if (!mouseOver) {\n            hoverOutTimeout.current = setTimeout(\n                () => {\n                    setShowPreview(false);\n                    if (hoverInTimeout.current) {\n                        clearTimeout(hoverInTimeout.current);\n                    }\n                },\n                disappearTime,\n            );\n        }\n\n        return () => {\n            if (hoverOutTimeout.current) {\n                clearTimeout(hoverOutTimeout.current);\n            }\n            if (hoverInTimeout.current) {\n                clearTimeout(hoverInTimeout.current);\n            }\n        }\n    }, [\n        preview,\n        mouseOver,\n    ]);\n\n    return {\n        showPreview,\n        setShowPreview,\n    };\n}\n// #endregion module\n\n\n\n// #region exports\nexport default useLinkPreview;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import React, {\n        useContext,\n        useState,\n        useRef,\n        useMemo,\n        useCallback,\n        useEffect,\n    } from 'react';\n\n    import {\n        createPortal,\n    } from 'react-dom';\n\n    import {\n        AnyAction,\n        ThunkDispatch,\n    } from '@reduxjs/toolkit';\n    import { connect } from 'react-redux';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n\n    import {\n        // #region constants\n        PLURID_DEFAULT_CONFIGURATION_LINK_SUFFIX,\n        PLURID_ENTITY_LINK,\n        PLURID_DEFAULT_CONFIGURATION_LINK_PREVIEW_FADE_IN,\n        PLURID_DEFAULT_CONFIGURATION_LINK_PREVIEW_FADE_OUT,\n        // #endregion constants\n\n        // #region interfaces\n        PluridLink as PluridLinkOwnProperties,\n        TreePlane,\n        PluridConfiguration,\n        LinkCoordinates,\n        PluridConfigurationSpaceBridgeLean,\n        // #endregion interfaces\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactComponent,\n    } from '~data/interfaces';\n\n    import {\n        defaultLinkCoordinates,\n    } from '~data/constants';\n\n\n    import Context from '~services/context';\n\n    import { AppState } from '~services/state/store';\n    import StateContext from '~services/state/context';\n    import selectors from '~services/state/selectors';\n    import actions from '~services/state/actions';\n    import {\n        ViewSize,\n    } from '~services/state/modules/space/types';\n\n    import {\n        toggleLinkPlane,\n    } from '~services/state/thunks/planes';\n\n    import {\n        navigateToPluridPlane,\n    } from '~services/logic/animation';\n\n    import {\n        measureLinkCoordinates,\n        resolveLinkID,\n    } from '~services/logic/link/measure';\n    import {\n        bridgeGeometry,\n        BRIDGE_REACH_VARIABLE,\n        BRIDGE_ANGLE_VARIABLE,\n    } from '~services/logic/link/bridge';\n    import {\n        observeResize,\n    } from '~services/logic/link/observer';\n    import {\n        followPlaneScroll,\n    } from '~services/logic/link/follow';\n\n    import {\n        planeElementOf,\n    } from '~services/logic/input/guard';\n\n    import {\n        getPlanesRegistrar,\n\n        resolveRoute,\n        computePlaneAddress,\n        routeSuffix,\n\n        space,\n    } from '~services/engine';\n    // #endregion external\n\n\n    // #region internal\n    import PluridPlanePreview from './components/Preview';\n\n    import {\n        StyledPluridLink,\n    } from './styled';\n\n    import useLinkPreview from './hooks/useLinkPreview';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\n/** The bridge length of a node spawned before the length was stored (`space.bridge.length`'s default). */\nconst DEFAULT_BRIDGE_LENGTH = 100;\n\nexport interface PluridLinkStateProperties {\n    stateTree: TreePlane[];\n    stateGeneralTheme: Theme;\n    stateConfiguration: PluridConfiguration;\n    stateViewSize: ViewSize;\n}\n\nexport interface PluridLinkDispatchProperties {\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n}\n\nexport type PluridLinkProperties =\n    & PluridLinkOwnProperties<PluridReactComponent, React.CSSProperties, React.MouseEvent>\n    & PluridLinkStateProperties\n    & PluridLinkDispatchProperties;\n\n\n/**\n * The in-space anchor: clicking spawns (or toggles) the target plane next to this one, joined by a\n * bridge. The TREE is the single source of truth for the link's state — the spawned plane is found\n * by the link's stable id (`spawnedByLinkID`), so undo, host `setTree`, collaboration and relayouts\n * all keep the link in step; nothing is held in local state that could go stale. The link measures\n * where it sits on its plane (layout offsets, not transformed rects) and re-measures only when the\n * plane, the view, or the link itself changes size.\n */\nconst PluridLink: React.FC<React.PropsWithChildren<PluridLinkProperties>> = (\n    properties,\n) => {\n    // #region context\n    const context = useContext(Context);\n    const hostname = context?.hostname;\n    const planesRegistrar = context?.planesRegistrar;\n    const planesRegistry = getPlanesRegistrar(planesRegistrar);\n    // #endregion context\n\n\n    // #region properties\n    const {\n        // #region own\n        children,\n        route: planeRoute,\n        devisible: devisibleProperty,\n        suffix: suffixProperty,\n        atClick,\n        style,\n        className,\n        preview,\n        previewComponent,\n        previewFadeIn,\n        previewFadeOut,\n        previewOffsetX,\n        previewOffsetY,\n        linkID: linkIDProperty,\n        mode,\n        framing,\n        // #endregion own\n\n        // #region state\n        stateTree,\n        stateGeneralTheme,\n        stateConfiguration,\n        stateViewSize,\n        // #endregion state\n\n        // #region dispatch\n        dispatch,\n        // #endregion dispatch\n    } = properties;\n\n    const previewAppearTime = previewFadeIn || PLURID_DEFAULT_CONFIGURATION_LINK_PREVIEW_FADE_IN;\n    const previewDisappearTime = previewFadeOut || PLURID_DEFAULT_CONFIGURATION_LINK_PREVIEW_FADE_OUT;\n\n    // addressed on the APPLICATION'S host, the one its planes are registered under: without it the\n    // address took each side's own default (`origin` on the server, `location.host` in the browser),\n    // so a server-rendered link never matched the hydrated one (2026-09-29)\n    const planeRouteResolved = computePlaneAddress(planeRoute, undefined, hostname);\n\n    const absolutePlaneRoute = resolveRoute(\n        planeRouteResolved,\n        stateConfiguration.network.protocol,\n        hostname || stateConfiguration.network.host,\n    );\n    // THE QUERY TRAVELS: the route a link spawns keeps its `?query#fragment` — part of the plane's\n    // identity (two queries, two planes) and of its props; the address is the pathname's\n    const route = (absolutePlaneRoute?.route || planeRouteResolved) + routeSuffix(planeRoute);\n\n    const suffix = suffixProperty ?? PLURID_DEFAULT_CONFIGURATION_LINK_SUFFIX;\n    // a link is the space's: no native link drag out of a plane unless the host asks for one\n    const linkDraggable = stateConfiguration.elements.link?.draggable === true;\n    const devisible = devisibleProperty ?? false;\n    // #endregion properties\n\n\n    // #region references\n    const linkElement: React.RefObject<HTMLAnchorElement> = useRef(null);\n    /** The coordinates the tree holds for the spawned plane (mirrors `childPlane.linkCoordinates`). */\n    const storedCoordinates = useRef<LinkCoordinates | undefined>(undefined);\n    // #endregion references\n\n\n    // #region state\n    const [mouseOver, setMouseOver] = useState(false);\n    const [parentPlaneID, setParentPlaneID] = useState('');\n    const [linkID, setLinkID] = useState('');\n    const [linkCoordinates, setLinkCoordinates] = useState<LinkCoordinates>(defaultLinkCoordinates);\n\n    // Derived from the tree — never held locally.\n    const childPlane = useMemo(\n        () => (parentPlaneID && linkID\n            ? space.tree.fields.findPlaneByLinkID(stateTree, parentPlaneID, linkID)\n            : undefined),\n        [\n            stateTree,\n            parentPlaneID,\n            linkID,\n        ],\n    );\n    const parentPlane = useMemo(\n        () => (parentPlaneID ? space.tree.logic.getTreePlaneByID(stateTree, parentPlaneID) : undefined),\n        [\n            stateTree,\n            parentPlaneID,\n        ],\n    );\n    const showLink = !!childPlane && childPlane.show !== false;\n    const pluridPlaneID = childPlane?.planeID || '';\n    // the spawn geometry the leash is drawn with (stored on the tree node at spawn); the refs are\n    // synced after the commit (never during a render), before the tracking effect below reads them\n    const bridgeRef = useRef<{\n        length: number;\n        side: 'start' | 'end';\n        lean: PluridConfigurationSpaceBridgeLean | undefined;\n    }>({ length: DEFAULT_BRIDGE_LENGTH, side: 'start', lean: undefined });\n    useEffect(() => {\n        storedCoordinates.current = childPlane?.linkCoordinates;\n        bridgeRef.current = {\n            length: childPlane?.bridgeLength ?? DEFAULT_BRIDGE_LENGTH,\n            side: childPlane?.bridgeSide ?? 'start',\n            // THE LEAN RIDES THE REF, NEVER THE EFFECT'S DEPENDENCIES. The tracking effect\n            // re-measures the link and RE-ANCHORS the child when it runs (`update()`), so a\n            // configuration change in its dependency list moved a plane the reader had put\n            // where it is: two visual baselines caught the page jumping 20px after a scroll\n            // (2026-09-18). An arrangement is the reader's.\n            lean: stateConfiguration.space.bridge?.lean,\n        };\n    });\n    // #endregion state\n\n\n    // Hover-preview state machine (timers + showPreview) lives in `useLinkPreview`.\n    const {\n        showPreview,\n        setShowPreview,\n    } = useLinkPreview({\n        preview,\n        mouseOver,\n        appearTime: previewAppearTime,\n        disappearTime: previewDisappearTime,\n    });\n\n    // THE PREVIEW HANGS IN THE LINK'S OWN PLANE, where its plane-local coordinates mean something.\n    // It was portalled by `#preview-<planeID>`: a plane id (`plurid://host/p@0`) is no CSS id, so the\n    // first hover threw an invalid-selector error and took the application down; and the plane's\n    // DOM id is its digest, so even escaped it would have found nothing. Read after the hover that\n    // shows it, when the anchor is in the document.\n    const previewHost = showPreview && linkElement.current\n        ? planeElementOf(linkElement.current)\n        : null;\n\n\n    // #region handlers\n    const measure = useCallback((): LinkCoordinates | undefined => {\n        const element = linkElement.current;\n        const planeElement = element ? planeElementOf(element) : null;\n        if (!element || !planeElement) {\n            return undefined;\n        }\n        return measureLinkCoordinates(element, planeElement);\n    }, []);\n\n    const defocusLink = () => {\n        if (linkElement.current) {\n            linkElement.current.blur();\n        }\n    }\n\n    const handleClick = useCallback((\n        event: React.MouseEvent<HTMLAnchorElement>,\n    ) => {\n        event.preventDefault();\n\n        if (atClick !== undefined) {\n            atClick(event);\n        }\n\n        // Ctrl/Cmd-click is the host's (a new tab, a multi-select); Alt-click re-navigates to the\n        // plane this link already opened.\n        if (event.ctrlKey || event.metaKey) {\n            return;\n        }\n        if (event.altKey) {\n            if (childPlane && childPlane.show !== false) {\n                navigateToPluridPlane(dispatch, childPlane, event);\n            }\n            return;\n        }\n\n        if (!parentPlaneID || !linkID || !planesRegistry) {\n            return;\n        }\n\n        const coordinates = measure() || linkCoordinates;\n        setLinkCoordinates(coordinates);\n        setShowPreview(false);\n\n        dispatch(toggleLinkPlane({\n            parentPlaneID,\n            linkID,\n            route,\n            linkCoordinates: coordinates,\n            planesRegistry: planesRegistry.getAll(),\n            hostname,\n            // a product's way back GOES to the plane it made; the space's own links toggle\n            mode,\n            framing,\n        }) as any);\n\n        defocusLink();\n    }, [\n        atClick,\n        childPlane,\n        parentPlaneID,\n        linkID,\n        route,\n        planesRegistry,\n        hostname,\n        linkCoordinates,\n        measure,\n        mode,\n        framing,\n    ]);\n\n    const handleKeyUp = (\n        event: React.KeyboardEvent,\n    ) => {\n        // With an `href` (U04, 2026-09-06) Enter is the anchor's native click, which `handleClick`\n        // already takes; a link without one (a non-string route) keeps the manual path.\n        if (event.code === 'Enter' && typeof route !== 'string') {\n            handleClick(event as any);\n        }\n    }\n    // #endregion handlers\n\n\n    // #region effects\n    /** Identity + first measurement: which plane hosts this link, and where it sits on it. */\n    useEffect(() => {\n        const element = linkElement.current;\n        const planeElement = element ? planeElementOf(element) : null;\n        if (!element || !planeElement) {\n            return;\n        }\n\n        setParentPlaneID(planeElement.getAttribute('data-plurid-plane') || '');\n        setLinkID(resolveLinkID(element, planeElement, route, linkIDProperty));\n        setLinkCoordinates(measureLinkCoordinates(element, planeElement));\n    }, [\n        route,\n        linkIDProperty,\n    ]);\n\n    /**\n     * Keep the spawned plane attached to the link as the link moves within its plane: re-measure\n     * when the plane's measured size, the view, or the link element itself changes — through the\n     * equality-gated reducer, so an unchanged measurement dispatches nothing.\n     */\n    useEffect(() => {\n        if (!showLink || !pluridPlaneID) {\n            return;\n        }\n        const element = linkElement.current;\n        const planeElement = element ? planeElementOf(element) : null;\n        if (!element || !planeElement) {\n            return;\n        }\n\n        const update = () => {\n            const coordinates = measureLinkCoordinates(element, planeElement);\n            setLinkCoordinates((previous) => (\n                previous.x === coordinates.x && previous.y === coordinates.y\n                    ? previous\n                    : coordinates\n            ));\n            // Dispatch only when the tree holds something else: the reducer is equality-gated\n            // too, but a no-op dispatch still notifies every store subscriber.\n            const stored = storedCoordinates.current;\n            if (stored && stored.x === coordinates.x && stored.y === coordinates.y) {\n                return;\n            }\n            storedCoordinates.current = coordinates;\n            dispatch(actions.space.updateLinkCoordinates({\n                planeID: pluridPlaneID,\n                linkCoordinates: coordinates,\n            }));\n        };\n\n        // THE LEASH (`services/logic/link/bridge.ts`): while the link scrolls inside its plane the\n        // child stays where it is and the bridge follows the link — two custom properties on the\n        // child plane element, written per frame, never through the store. `scroll` does not\n        // bubble; a capture listener on the plane catches every scroller inside it.\n        let childElement: HTMLElement | null = null;\n        const findChild = () => {\n            if (typeof document === 'undefined') {\n                return null;\n            }\n            if (!childElement || !childElement.isConnected) {\n                // in THIS application's view: two applications with the same routes hold the same\n                // plane ids, and the leash wrote its variables onto the other one's child\n                const scope: ParentNode = element.closest('[data-plurid-entity=\"PluridView\"]') ?? document;\n                childElement = scope.querySelector<HTMLElement>(\n                    '[data-plurid-plane=\"' + pluridPlaneID.replace(/[\"\\\\]/g, '\\\\$&') + '\"]',\n                );\n            }\n            return childElement;\n        };\n        const follow = () => {\n            const target = findChild();\n            if (!target) {\n                return;\n            }\n            const current = measureLinkCoordinates(element, planeElement);\n            const geometry = bridgeGeometry(\n                storedCoordinates.current,\n                current,\n                bridgeRef.current.length,\n                bridgeRef.current.side,\n                bridgeRef.current.lean,\n            );\n            target.style.setProperty(BRIDGE_REACH_VARIABLE, geometry.reach + 'px');\n            target.style.setProperty(BRIDGE_ANGLE_VARIABLE, geometry.angle + 'deg');\n        };\n        const measureAndFollow = () => {\n            update();\n            follow();\n        };\n\n        measureAndFollow();\n        const unfollow = followPlaneScroll(planeElement, follow);\n        // one observer for every link, not one per link\n        const unobserve = observeResize(element, measureAndFollow);\n\n        return () => {\n            unfollow();\n            unobserve();\n            const target = findChild();\n            if (target) {\n                target.style.removeProperty(BRIDGE_REACH_VARIABLE);\n                target.style.removeProperty(BRIDGE_ANGLE_VARIABLE);\n            }\n        };\n    }, [\n        showLink,\n        pluridPlaneID,\n        parentPlane?.width,\n        parentPlane?.height,\n        stateViewSize.width,\n        stateViewSize.height,\n    ]);\n    // #endregion effects\n\n\n    // #region render\n    if (!context || !planesRegistry) {\n        return (<>{children}</>);\n    }\n\n    return (\n        <StyledPluridLink\n            ref={linkElement}\n            onClick={(event: React.MouseEvent<HTMLAnchorElement>) => handleClick(event)}\n            onMouseEnter={() => setMouseOver(true)}\n            onMouseLeave={() => setMouseOver(false)}\n            onKeyUp={(event) => handleKeyUp(event)}\n            theme={stateGeneralTheme}\n            suffix={suffix}\n            devisible={devisible}\n            draggable={linkDraggable}\n            style={{\n                ...style,\n            }}\n            className={className}\n            data-plurid-entity={PLURID_ENTITY_LINK}\n            data-plurid-link={linkID || undefined}\n            data-plurid-link-route={route}\n            data-plurid-link-open={showLink ? 'true' : undefined}\n            href={typeof route === 'string' ? route : undefined}\n            tabIndex={0}\n        >\n            {children}\n\n            {showPreview\n            && !showLink\n            && previewHost\n            && createPortal(\n                <PluridPlanePreview\n                    planeRoute={planeRouteResolved}\n                    linkCoordinates={linkCoordinates}\n                    previewComponent={previewComponent}\n                    previewOffsetX={previewOffsetX}\n                    previewOffsetY={previewOffsetY}\n                />,\n                previewHost,\n            )}\n        </StyledPluridLink>\n    );\n    // #endregion render\n}\n\n\nconst mapStateToProperties = (\n    state: AppState,\n): PluridLinkStateProperties => ({\n    stateTree: selectors.space.getTree(state),\n    stateGeneralTheme: selectors.themes.getGeneralTheme(state),\n    stateConfiguration: selectors.configuration.getConfiguration(state),\n    stateViewSize: selectors.space.getViewSize(state),\n});\n\n\nconst mapDispatchToProperties = (\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n): PluridLinkDispatchProperties => ({\n    dispatch,\n});\n\n\nconst ConnectedPluridLink = connect(\n    mapStateToProperties,\n    mapDispatchToProperties,\n    null,\n    {\n        context: StateContext,\n    },\n)(PluridLink);\n\n\ntype PluridLinkPublicProperties = React.PropsWithChildren<\n    PluridLinkOwnProperties<PluridReactComponent, React.CSSProperties, React.MouseEvent>\n>;\n\n\n/**\n * Outside an application (a host's unit test, a static render of plane content) there is no\n * engine store for the connected link: render a plain anchor to the route instead of crashing.\n * The host's `atClick` still runs; the browser keeps the click (no `preventDefault`).\n */\nconst PluridLinkFallback: React.FC<PluridLinkPublicProperties> = ({\n    children,\n    route,\n    atClick,\n    style,\n    className,\n}) => (\n    <a\n        href={computePlaneAddress(route)}\n        style={style}\n        className={className}\n        onClick={atClick ? (event) => atClick(event) : undefined}\n        // outside an application there is no space to drag in and no configuration to read: the\n        // default is the engine's (a link is not dragged), as it is inside one\n        draggable={false}\n        data-plurid-entity={PLURID_ENTITY_LINK}\n        data-plurid-link-route={route}\n    >\n        {children}\n    </a>\n);\n\n\n/** The link renders through the engine inside an application and as a plain anchor outside one. */\nconst PluridLinkGate: React.FC<PluridLinkPublicProperties> = (\n    properties,\n) => {\n    const engine = useContext(Context);\n    const store = useContext(StateContext);\n\n    if (!engine || !store) {\n        return (\n            <PluridLinkFallback\n                {...properties}\n            />\n        );\n    }\n\n    return (\n        <ConnectedPluridLink\n            {...(properties as any)}\n        />\n    );\n};\n// #endregion module\n\n\n\n// #region exports\nexport default PluridLinkGate;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import styled, {\n        css,\n    } from 'styled-components';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport interface IStyledPluridRouterLink {\n    theme: Theme;\n}\n\nconst commonStyle = css<IStyledPluridRouterLink>`\n    color: ${({\n        theme,\n    }) => {\n        return 'var(--plurid-accent)';\n    }};\n\n    @media (hover:hover) {\n        &:hover {\n            color: ${({\n                theme,\n            }) => {\n                return 'var(--plurid-ink)';\n            }};\n        }\n    }\n`;\n\nexport const StyledPluridRouterLinkAnchor = styled.a<IStyledPluridRouterLink>`\n    ${commonStyle}\n`;\n\n\nexport const StyledPluridRouterLinkDiv = styled.div<IStyledPluridRouterLink>`\n    cursor: pointer;\n\n    ${commonStyle}\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React from 'react';\n\n\n    import {\n        plurid,\n        Theme,\n    } from '@plurid/plurid-themes';\n\n    import {\n        pluridRouterNavigate,\n    } from '@plurid/plurid-engine';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        DEFAULT_ROUTER_LINK_AS_ANCHOR,\n    } from '~data/constants';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledPluridRouterLinkAnchor,\n        StyledPluridRouterLinkDiv,\n    } from './styled';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport interface PluridRouterLinkOwnProperties {\n    // #region required\n        // #region values\n        route: string;\n        // #endregion values\n\n        // #region methods\n        // #endregion methods\n    // #endregion required\n\n    // #region optional\n        // #region values\n        /**\n         * Style as an anchor tag. Default `true`.\n         */\n        asAnchor?: boolean;\n        target?: '_blank' | '_self';\n\n        theme?: Theme;\n        style?: React.CSSProperties;\n        className?: string;\n        children?: React.ReactNode;\n        // #endregion values\n\n        // #region methods\n        /**\n         * Click handler. If it returns true it will exit preemptively.\n         */\n        atClick?: (\n            event: React.MouseEvent<Element, MouseEvent>,\n        ) => boolean | void;\n        // #endregion methods\n    // #endregion optional\n}\n\nconst PluridRouterLink: React.FC<PluridRouterLinkOwnProperties> = (\n    properties,\n) => {\n    // #region properties\n    const {\n        // #region required\n            // #region values\n            route,\n            children,\n            // #endregion values\n\n            // #region methods\n            // #endregion methods\n        // #endregion required\n\n        // #region optional\n            // #region values\n            asAnchor: asAnchorProperty,\n            target,\n            theme: themeProperty,\n            style,\n            className,\n            // #endregion values\n\n            // #region methods\n            atClick,\n            // #endregion methods\n        // #endregion optional\n    } = properties;\n\n    const asAnchor = asAnchorProperty ?? DEFAULT_ROUTER_LINK_AS_ANCHOR;\n    const theme = themeProperty || plurid;\n    // #endregion properties\n\n\n    // #region handlers\n    const handleClick = (\n        event: React.MouseEvent<Element, MouseEvent>,\n    ) => {\n        // Always prevent the browser's default navigation FIRST — this is an SPA router link,\n        // so a full-page load is never wanted. An `atClick` that returns truthy (\"I'll handle\n        // it myself\") should still suppress the default; previously it returned before\n        // `preventDefault()`, so the browser navigated away anyway.\n        event.preventDefault();\n\n        if (atClick) {\n            const exit = atClick(event);\n\n            if (exit) {\n                return;\n            }\n        }\n\n        if (target === '_blank') {\n            window.open(route);\n            return;\n        }\n\n        pluridRouterNavigate(route);\n    }\n\n    const handleKeyUp = (\n        event: React.KeyboardEvent,\n    ) => {\n        if (event.code === 'Enter') {\n            // FORCED any\n            handleClick(event as any);\n            return;\n        }\n\n        return;\n    }\n    // #endregion handlers\n\n\n    // #region render\n    const renderProperties = {\n        tabIndex: 0,\n        theme,\n        style,\n        className,\n        onClick: handleClick,\n        onKeyUp: handleKeyUp,\n    };\n\n    if (!asAnchor) {\n        return (\n            <StyledPluridRouterLinkDiv\n                {...renderProperties}\n            >\n                {children}\n            </StyledPluridRouterLinkDiv>\n        );\n    }\n\n    // A real anchor fires a native click on Enter, so no `onKeyUp` handler here — with both,\n    // Enter navigated twice.\n    const anchorProperties = {\n        ...renderProperties,\n        onKeyUp: undefined,\n    };\n\n    return (\n        <StyledPluridRouterLinkAnchor\n            href={route}\n            {...anchorProperties}\n        >\n            {children}\n        </StyledPluridRouterLinkAnchor>\n    );\n    // #endregion render\n}\n// #endregion module\n\n\n\n// #region exports\nexport default PluridRouterLink;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport const StyledPluridApplicationConfigurator = styled.div`\n    position: absolute;\n    height: 0;\n    width: 0;\n    user-select: none;\n    pointer-events: none;\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React, {\n        useRef,\n        useContext,\n        useEffect,\n    } from 'react';\n\n    import {\n        AnyAction,\n        ThunkDispatch,\n    } from '@reduxjs/toolkit';\n    import { connect } from 'react-redux';\n\n\n    import PluridPubSub from '@plurid/plurid-pubsub';\n\n    import {\n        PLURID_ENTITY_APPLICATION_CONFIGURATOR,\n        PluridConfiguration,\n        PluridPartialConfiguration,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import Context from '~services/context';\n\n    import { AppState } from '~services/state/store';\n    import StateContext from '~services/state/context';\n    import selectors from '~services/state/selectors';\n    import actions from '~services/state/actions';\n    import {\n        DispatchAction,\n    } from '~data/interfaces';\n\n    import {\n        generalEngine,\n    } from '~services/engine';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledPluridApplicationConfigurator,\n    } from './styled';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport interface PluridApplicationConfiguratorOwnProperties {\n    configuration?: PluridPartialConfiguration;\n    pubsub?: PluridPubSub;\n}\n\nexport interface PluridApplicationConfiguratorStateProperties {\n    stateConfiguration: PluridConfiguration;\n}\n\nexport interface PluridApplicationConfiguratorDispatchProperties {\n    dispatchSetConfiguration: DispatchAction<typeof actions.configuration.setConfiguration>;\n}\n\nexport type PluridApplicationConfiguratorProperties = PluridApplicationConfiguratorOwnProperties\n    & PluridApplicationConfiguratorStateProperties\n    & PluridApplicationConfiguratorDispatchProperties;\n\n/**\n * Goes up the tree to find the first plurid application\n * and update it's properties.\n *\n * @param properties\n */\nconst PluridApplicationConfigurator: React.FC<React.PropsWithChildren<PluridApplicationConfiguratorProperties>> = (\n    properties,\n) => {\n    /** context */\n    const context = useContext(Context);\n\n    if (!context) {\n        return (<></>);\n    }\n\n    const {\n        registerPubSub,\n    } = context;\n\n\n    /** properties */\n    const {\n        /** own */\n        configuration,\n        pubsub,\n\n        /** state */\n        stateConfiguration,\n\n        /** dispatch */\n        dispatchSetConfiguration,\n    } = properties;\n\n\n    /** references */\n    const configuratorElement: React.RefObject<HTMLDivElement> = useRef(null);\n\n\n    /** effects */\n    /**\n     * Handle configuration.\n     */\n    useEffect(() => {\n        const computedConfiguration = generalEngine.configuration.merge(\n            configuration,\n            stateConfiguration,\n        );\n        dispatchSetConfiguration(computedConfiguration);\n    }, [\n        configuration,\n    ]);\n\n    /**\n     * Handle Publish/Subscribe.\n     */\n    useEffect(() => {\n        if (!pubsub) {\n            return;\n        }\n        const unregister = registerPubSub(pubsub);\n        // the bridge leaves with the configurator\n        return () => {\n            if (typeof unregister === 'function') {\n                unregister();\n            }\n        };\n    }, [\n        pubsub,\n    ]);\n\n\n    /** render */\n    return (\n        <StyledPluridApplicationConfigurator\n            ref={configuratorElement}\n            data-plurid-entity={PLURID_ENTITY_APPLICATION_CONFIGURATOR}\n        />\n    );\n}\n\n\nconst mapStateToProps = (\n    state: AppState,\n): PluridApplicationConfiguratorStateProperties => ({\n    stateConfiguration: selectors.configuration.getConfiguration(state),\n});\n\n\nconst mapDispatchToProps = (\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n): PluridApplicationConfiguratorDispatchProperties => ({\n    dispatchSetConfiguration: (\n        payload,\n    ) => dispatch(\n        actions.configuration.setConfiguration(payload)\n    ),\n});\n\n\nconst ConnectedPluridApplicationConfigurator = connect(\n    mapStateToProps,\n    mapDispatchToProps,\n    null,\n    {\n        context: StateContext,\n    },\n)(PluridApplicationConfigurator);\n// #endregion module\n\n\n\n// #region exports\nexport default ConnectedPluridApplicationConfigurator;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport const StyledPluridPlaneConfigurator = styled.div`\n    position: absolute;\n    height: 0;\n    width: 0;\n    user-select: none;\n    pointer-events: none;\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React, {\n        useRef,\n        useState,\n        useEffect,\n    } from 'react';\n\n    import {\n        AnyAction,\n        ThunkDispatch,\n    } from '@reduxjs/toolkit';\n    import { connect } from 'react-redux';\n\n\n    import themes from '@plurid/plurid-themes';\n\n    import {\n        PLURID_ENTITY_PLANE_CONFIGURATOR,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import { AppState } from '~services/state/store';\n    import StateContext from '~services/state/context';\n    // import selectors from '~services/state/selectors';\n    // import actions from '~services/state/actions';\n\n    import {\n        planes,\n    } from '~services/engine';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledPluridPlaneConfigurator,\n    } from './styled';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nconst {\n    getPluridPlaneIDByData,\n} = planes;\n\n\n\nexport interface PluridPlaneConfiguratorOwnProperties {\n    // #region required\n        // #region values\n        theme: keyof typeof themes;\n        style: React.CSSProperties;\n        // #endregion values\n    // #endregion required\n}\n\nexport interface PluridPlaneConfiguratorStateProperties {\n}\n\nexport interface PluridPlaneConfiguratorDispatchProperties {\n}\n\nexport type PluridPlaneConfiguratorProperties = PluridPlaneConfiguratorOwnProperties\n    & PluridPlaneConfiguratorStateProperties\n    & PluridPlaneConfiguratorDispatchProperties;\n\n\n/**\n * Goes up the tree to find the first plurid plane\n * and update it's properties.\n *\n * @param properties\n */\nconst PluridPlaneConfigurator: React.FC<React.PropsWithChildren<PluridPlaneConfiguratorProperties>> = (\n    properties,\n) => {\n    // #region properties\n    const {\n        // #region required\n            // #region values\n            theme,\n            style,\n            // #endregion values\n        // #endregion required\n    } = properties;\n    // #endregion properties\n\n\n    // #region references\n    const configuratorElement: React.RefObject<HTMLDivElement> = useRef(null);\n    // #endregion references\n\n\n    // #region state\n    const [planePlaneID, setParentPlaneID] = useState('');\n    // #endregion state\n\n\n    // #region effects\n    /**\n     * Get Parent Plane ID\n     * Get Plurid Link Coordinates\n     */\n    useEffect(() => {\n        const parentPlaneID = getPluridPlaneIDByData(\n            configuratorElement.current,\n        );\n        setParentPlaneID(parentPlaneID);\n    }, []);\n    // #endregion effects\n\n\n    // #region render\n    return (\n        <StyledPluridPlaneConfigurator\n            ref={configuratorElement}\n            data-plurid-entity={PLURID_ENTITY_PLANE_CONFIGURATOR}\n        />\n    );\n    // #endregion render\n}\n\n\nconst mapStateToProperties = (\n    state: AppState,\n): PluridPlaneConfiguratorStateProperties => ({\n});\n\n\nconst mapDispatchToProperties = (\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n): PluridPlaneConfiguratorDispatchProperties => ({\n});\n\n\nconst ConnectedPluridPlaneConfigurator = connect(\n    mapStateToProperties,\n    mapDispatchToProperties,\n    null,\n    {\n        context: StateContext,\n    },\n)(PluridPlaneConfigurator);\n// #endregion module\n\n\n\n// #region exports\nexport default ConnectedPluridPlaneConfigurator;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #region libraries\n// #region imports\n\n\n\n// #region module\nexport interface IStyledExternalPlane {\n    theme: Theme;\n}\n\nexport const StyledExternalPlane = styled.div<IStyledExternalPlane>`\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React, {\n        useRef,\n        useState,\n        useEffect,\n    } from 'react';\n\n    import {\n        AnyAction,\n        ThunkDispatch,\n    } from '@reduxjs/toolkit';\n    import { connect } from 'react-redux';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactFunctionalComponent,\n    } from '~data/interfaces';\n\n    import { AppState } from '~services/state/store';\n    import StateContext from '~services/state/context';\n    import selectors from '~services/state/selectors';\n    // import actions from '~services/state/actions';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledExternalPlane,\n    } from './styled';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nconst isLoopback = (\n    host: string,\n) => host === 'localhost'\n    || host.endsWith('.localhost')\n    || host === '[::1]'\n    || /^127(\\.\\d{1,3}){3}$/.test(host);\n\n/**\n * The pttp endpoint of a `pttp://host[:port]/path` route. The host is the whole authority: the pattern\n * took one dot only, so `pttp://a.example.com/path` asked `a.example` for `.com/path`. The request\n * goes over the page's own transport, as an https page cannot fetch over http, and over http to this\n * machine; it was http always (2026-10-20).\n */\nexport const getPttpUrl = (\n    path: string,\n    pageProtocol = typeof window === 'undefined' ? 'http:' : window.location.protocol,\n) => {\n    // console.log('getPttpUrl path', path);\n    const re = /^pttp:\\/\\/([^/?#]+)/;\n    const match = path.match(re);\n    // console.log('getPttpUrl match', match);\n\n    if (!match) {\n        return {\n            domain: '',\n            url: '',\n        };\n    }\n\n    const domain = match[1];\n    const protocol = pageProtocol === 'https:' && !isLoopback(domain.replace(/:\\d+$/, ''))\n        ? 'https'\n        : 'http';\n    const url = `${protocol}://${domain}/pttp`\n    return {\n        domain,\n        url,\n    };\n}\n\nconst getPttpPath = (\n    domain: string,\n    path: string,\n) => {\n    if (!domain) {\n        return;\n    }\n\n    const pttpPath = path.replace(`pttp://${domain}`, '');\n\n    return pttpPath;\n}\n\nconst elementRequest = async (\n    url: string,\n    path: string,\n) => {\n    try {\n        // console.log('elementRequest url', url);\n        // console.log('elementRequest path', path);\n\n        const response = await fetch(\n            url,\n            {\n                method: 'post',\n                headers: {\n                    'Accept': 'application/json',\n                    'Content-Type': 'application/json',\n                },\n                body: JSON.stringify({\n                    path,\n                }),\n                credentials: 'include',\n            },\n        );\n        // console.log('response', response);\n\n        const data = await response.json();\n        // console.log('data', data);\n\n        if (!data.element) {\n            return;\n        }\n\n        const {\n            element,\n        } = data;\n\n        // The ElementQL client is an OPTIONAL peer, loaded only when an external plane resolves.\n        const { ElementQLClient } = await import('@plurid/elementql-client-react');\n        const elementQLClient = new ElementQLClient({\n            url: element.url,\n        });\n\n        const {\n            status,\n            Elements,\n        }: any = await elementQLClient.get(\n            element.json,\n            'json',\n        );\n\n        if (!status) {\n            return;\n        }\n\n        const Element = Elements[element.name];\n\n        return () => Element;\n    } catch (error) {\n        // console.log('error', error);\n\n        return;\n    }\n}\n\n\nexport interface ExternalPlaneOwnProperties {\n}\n\nexport interface ExternalPlaneStateProperties {\n    stateGeneralTheme: Theme;\n    stateInteractionTheme: Theme;\n}\n\nexport interface ExternalPlaneDispatchProperties {\n}\n\nexport type ExternalPlaneProperties =\n    & ExternalPlaneOwnProperties\n    & ExternalPlaneStateProperties\n    & ExternalPlaneDispatchProperties;\n\n\nconst ExternalPlane: PluridReactFunctionalComponent<\n    ExternalPlaneProperties\n> = (\n    properties,\n) => {\n    // #region properties\n    const {\n        // #region required\n            // #region values\n            plurid,\n            // #endregion values\n        // #endregion required\n\n        // #region state\n        // stateGeneralTheme,\n        // stateInteractionTheme,\n        // #endregion state\n    } = properties;\n\n    // Registered as a plane, the component receives the plane's property; as a route's exterior, the\n    // route's. It read the route's shape only, so as a plane it never asked for its element (2026-10-20).\n    const route = 'plane' in plurid ? plurid.plane.value : plurid.value;\n    // #endregion properties\n\n\n    // #region references\n    const mounted = useRef(false);\n    const loadStarted = useRef(false);\n    // #endregion references\n\n\n    // #region state\n    const [\n        Component,\n        setComponent,\n    ] = useState<React.FC<any> | null>();\n    // #endregion state\n\n\n    // #region effects\n    useEffect(() => {\n        mounted.current = true;\n        return () => {\n            mounted.current = false;\n        };\n    });\n\n    useEffect(() => {\n        // Load exactly once per mounted instance: an effect-local flag resets on\n        // StrictMode's simulated remount (each closure owns its own copy), so the\n        // guard must live on a ref that survives it.\n        if (loadStarted.current) {\n            return;\n        }\n        loadStarted.current = true;\n\n        const load = async () => {\n            try {\n                // console.log('ExternalPlane > plurid', plurid);\n\n                const {\n                    domain,\n                    url,\n                } = getPttpUrl(\n                    route,\n                );\n                const pttpPath = getPttpPath(\n                    domain,\n                    route,\n                );\n\n                if (\n                    !url\n                    || !pttpPath\n                ) {\n                    return;\n                }\n\n                const Component = await elementRequest(\n                    url,\n                    pttpPath,\n                );\n\n                if (!mounted.current) {\n                    return;\n                }\n\n                if (Component) {\n                    setComponent(Component);\n                }\n            } catch (error) {\n                return;\n            }\n        }\n\n        load();\n    }, []);\n    // #endregion effects\n\n\n    // #region render\n    return (\n        <StyledExternalPlane>\n            {Component && (\n                <Component />\n            )}\n        </StyledExternalPlane>\n    );\n    // #endregion render\n}\n\n\nconst mapStateToProperties = (\n    state: AppState,\n): ExternalPlaneStateProperties => ({\n    stateGeneralTheme: selectors.themes.getGeneralTheme(state),\n    stateInteractionTheme: selectors.themes.getInteractionTheme(state),\n});\n\n\nconst mapDispatchToProperties = (\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n): ExternalPlaneDispatchProperties => ({\n});\n\n\nconst ConnectedExternalPlane = connect(\n    mapStateToProperties,\n    mapDispatchToProperties,\n    null,\n    {\n        context: StateContext,\n    },\n)(ExternalPlane);\n// #endregion module\n\n\n\n// #region exports\nexport default ConnectedExternalPlane;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import styled from 'styled-components';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #region libraries\n// #region imports\n\n\n\n// #region module\nexport interface IStyledIframePlane {\n    theme: Theme;\n}\n\nexport const StyledIframePlane = styled.div<IStyledIframePlane>`\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React from 'react';\n\n    import {\n        AnyAction,\n        ThunkDispatch,\n    } from '@reduxjs/toolkit';\n    import { connect } from 'react-redux';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactFunctionalComponent,\n    } from '~data/interfaces';\n\n    import { AppState } from '~services/state/store';\n    import StateContext from '~services/state/context';\n    import selectors from '~services/state/selectors';\n    // import actions from '~services/state/actions';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        StyledIframePlane,\n    } from './styled';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport interface IframePlaneOwnProperties {\n}\n\nexport interface IframePlaneStateProperties {\n    stateGeneralTheme: Theme;\n    stateInteractionTheme: Theme;\n    /** G / Space held: a transparent overlay takes the pointer so a drag over the iframe orbits. */\n    stateGrabMode: boolean;\n}\n\nexport interface IframePlaneDispatchProperties {\n}\n\nexport type IframePlaneProperties =\n    & IframePlaneOwnProperties\n    & IframePlaneStateProperties\n    & IframePlaneDispatchProperties;\n\nconst IframePlane: PluridReactFunctionalComponent<\n    IframePlaneProperties\n> = (\n    properties,\n) => {\n    // #region properties\n    const {\n        // #region required\n            // #region values\n            plurid,\n            // #endregion values\n        // #endregion required\n\n        // #region state\n        stateGrabMode,\n        // #endregion state\n    } = properties;\n\n    // Registered as a plane, the component receives the plane's property; as a route's exterior, the\n    // route's. It read the route's shape only, so as a plane the iframe had no `src` (2026-10-20).\n    const route = 'plane' in plurid ? plurid.plane.value : plurid.value;\n    // #endregion properties\n\n\n    // #region render\n    return (\n        <StyledIframePlane>\n            <iframe\n                src={route}\n                title={route}\n            />\n            {/* An iframe swallows pointer events; in grab mode the overlay hands the drag to the space. */}\n            {stateGrabMode && (\n                <div\n                    style={{\n                        position: 'absolute',\n                        inset: 0,\n                    }}\n                    data-plurid-iframe-overlay={true}\n                />\n            )}\n        </StyledIframePlane>\n    );\n    // #endregion render\n}\n\n\nconst mapStateToProperties = (\n    state: AppState,\n): IframePlaneStateProperties => ({\n    stateGeneralTheme: selectors.themes.getGeneralTheme(state),\n    stateInteractionTheme: selectors.themes.getInteractionTheme(state),\n    stateGrabMode: state.ui.grabMode || state.ui.grabHold,\n});\n\n\nconst mapDispatchToProperties = (\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n): IframePlaneDispatchProperties => ({\n});\n\n\nconst ConnectedIframePlane = connect(\n    mapStateToProperties,\n    mapDispatchToProperties,\n    null,\n    {\n        context: StateContext,\n    },\n)(IframePlane);\n// #endregion module\n\n\n\n// #region exports\nexport default ConnectedIframePlane;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import React, {\n        useRef,\n        useEffect,\n    } from 'react';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport interface VirtualListItemOwnProperties {\n    top: number;\n    index: number;\n    element: React.ReactElement;\n    setHeight(value: number, index: number): void;\n}\n\nconst VirtualListItem: React.FC<VirtualListItemOwnProperties> = (\n    properties,\n) => {\n    const {\n        top,\n        index,\n        element,\n        setHeight,\n    } = properties;\n\n    const el = useRef<HTMLDivElement>(null);\n\n    useEffect(() => {\n        if (el.current) {\n            setHeight(el.current.offsetHeight, index);\n        }\n    }, [\n        el.current,\n    ])\n\n    return (\n        <div\n            ref={el}\n            style={{\n                position: 'absolute',\n                top: top + 'px',\n            }}\n        >\n            {element}\n        </div>\n    );\n}\n// #endregion module\n\n\n\n// #region exports\nexport default VirtualListItem;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import React, {\n        useRef,\n        useEffect,\n        useState,\n    } from 'react';\n\n    import {\n        AnyAction,\n        ThunkDispatch,\n    } from '@reduxjs/toolkit';\n    import { connect } from 'react-redux';\n\n\n    import {\n        universal,\n    } from '@plurid/plurid-ui-components-react';\n\n    import {\n        mathematics,\n    } from '@plurid/plurid-functions';\n    // #endregion libraries\n\n\n    // #region external\n    import { AppState } from '~services/state/store';\n    import StateContext from '~services/state/context';\n    import selectors from '~services/state/selectors';\n    // import actions from '~services/state/actions';\n    import {\n        ViewSize,\n    } from '~services/state/modules/space/types';\n    // #endregion external\n\n\n    // #region internal\n    import PluridVirtualListItem from './components/ListItem';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nconst {\n    markers: {\n        Spinner: PluridSpinner,\n    },\n} = universal;\n\nexport interface PluridVirtualListOwnProperties {\n    items: React.ReactElement[];\n    generalHeight?: number;\n}\n\nexport interface PluridVirtualListStateProperties {\n    translationY: number,\n    viewSize: ViewSize;\n}\n\nexport interface PluridVirtualListDispatchProperties {\n}\n\nexport type PluridVirtualListProperties = PluridVirtualListOwnProperties\n    & PluridVirtualListStateProperties\n    & PluridVirtualListDispatchProperties;\n\n\nconst PluridVirtualList: React.FC<PluridVirtualListProperties> = (\n    properties,\n) => {\n    /** properties */\n    const {\n        /** own */\n        items,\n        generalHeight,\n\n        /** state */\n        translationY,\n        viewSize,\n    } = properties;\n\n    const _generalHeight = generalHeight || 100;\n\n\n    /** references */\n    const listElement = useRef<HTMLDivElement>(null);\n\n    const rows = useRef<any[]>([]);\n    const heights = useRef<number[]>(Array(items.length).fill(_generalHeight));\n\n\n    /** state */\n    const [start, setStart] = useState(0);\n    const [end, setEnd] = useState(Math.floor(1000 / _generalHeight));\n    const [elementHeight, setElementHeight] = useState(_generalHeight * (end - start));\n\n    const [resizing, setResizing] = useState(false);\n\n\n    /** handlers */\n    const setHeight = (\n        value: number,\n        index: number,\n    ) => {\n        heights.current[index] = value;\n    }\n\n    const renderRows = () => {\n        rows.current = [];\n\n        for (let i = start; i <= end; i++) {\n            const item = items[i];\n            rows.current.push(\n                <PluridVirtualListItem\n                    key={i}\n                    index={i}\n                    top={mathematics.arithmetic.sum(heights.current, i)}\n                    element={item}\n                    setHeight={setHeight}\n                />\n            );\n        }\n        return rows.current;\n    }\n\n\n    /** effects */\n    useEffect(() => {\n        if (heights.current) {\n            const elementHeight = mathematics.arithmetic.sum(heights.current, heights.current.length);\n            setElementHeight(elementHeight);\n        }\n    }, [\n        start,\n        end,\n        items.length,\n    ]);\n\n    useEffect(() => {\n        let sum = 0;\n        for (const [index, value] of heights.current.entries()) {\n            sum += value;\n            if (translationY < 0) {\n                if (sum < Math.abs(translationY)) {\n                    setStart(index);\n                }\n\n                if (\n                    sum > Math.abs(translationY) + viewSize.height\n                    && sum < Math.abs(translationY) + viewSize.height + 400\n                ) {\n                    setEnd(index);\n                }\n            } else {\n                setStart(0);\n                setEnd(10);\n            }\n        }\n    }, [\n        viewSize.height,\n        translationY,\n    ]);\n\n    useEffect(() => {\n        setResizing(true);\n\n        const timer = setTimeout(() => {\n            const elementHeight = mathematics.arithmetic.sum(heights.current, heights.current.length);\n            setElementHeight(elementHeight);\n\n            setResizing(false);\n        }, 400);\n\n        return () => {\n            clearTimeout(timer);\n        };\n    }, [\n        viewSize.width,\n        viewSize.height,\n    ]);\n\n\n    /** render */\n    return (\n        <div\n            style={{\n                height: elementHeight,\n            }}\n            ref={listElement}\n        >\n            {resizing && (\n                <>\n                    <PluridSpinner\n                    />\n                </>\n            )}\n            {!resizing && (\n                <>\n                    {renderRows()}\n                </>\n            )}\n        </div>\n    );\n}\n\n\nconst mapStateToProps = (\n    state: AppState,\n): PluridVirtualListStateProperties => ({\n    translationY: selectors.space.getTranslationY(state),\n    viewSize: selectors.space.getViewSize(state),\n});\n\n\nconst mapDispatchToProps = (\n    dispatch: ThunkDispatch<{}, {}, AnyAction>,\n): PluridVirtualListDispatchProperties => ({\n});\n\n\nconst ConnectedPluridVirtualList = connect(\n    mapStateToProps,\n    mapDispatchToProps,\n    null,\n    {\n        context: StateContext,\n    },\n)(PluridVirtualList);\n// #endregion module\n\n\n\n// #region exports\nexport default ConnectedPluridVirtualList;\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import {\n        PluridPlane,\n        PluridApplicationView,\n        PluridPartialConfiguration,\n        PluridConfiguration,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactComponent,\n    } from '~data/interfaces';\n\n    import {\n        routing,\n        space,\n        generalEngine,\n\n        PluridPlanesRegistrar,\n    } from '~services/engine';\n    // #endregion external\n// #endregion imports\n\n\n\n// #region module\nexport interface ComputeApplicationOptions {\n    /** THE ADDRESS BAR IS THE PAGE on the server: the page path the request names, read against the merged configuration. */\n    dockPath?: (configuration: PluridConfiguration) => string | null;\n    /** The view the roots are laid out for when a deep link docks (the server's fixed guess). */\n    viewSize?: { width: number; height: number };\n}\n\nexport const computeApplication = (\n    planes: PluridPlane<PluridReactComponent>[] | undefined,\n    configuration: PluridPartialConfiguration | undefined,\n    view: PluridApplicationView | undefined,\n    origin = 'origin',\n    options: ComputeApplicationOptions = {},\n) => {\n    const appConfiguration = generalEngine.configuration.merge(configuration);\n    const dockPath = options.dockPath?.(appConfiguration) ?? null;\n\n    const currentView = view || [];\n    const absoluteView = [];\n\n    for (const viewItem of currentView) {\n        if (typeof viewItem === 'string') {\n            const viewPath = routing.resolveRoute(viewItem);\n            if (!viewPath) {\n                continue;\n            }\n            absoluteView.push(viewPath.route);\n        }\n    }\n\n    const registrar = new PluridPlanesRegistrar(\n        planes,\n        origin,\n    );\n    const registrarPlanes = registrar.getAll();\n\n    // a deep link docks on a LAID-OUT tree (see the engine's `resolveSpace`): the layout-less tree\n    // stacks every root at the origin\n    const spaceTree = new space.tree.Tree(\n        {\n            planes: registrarPlanes,\n            configuration: appConfiguration,\n            view: absoluteView,\n            ...(dockPath && options.viewSize ? { layout: true, viewSize: options.viewSize } : {}),\n        },\n        origin,\n    );\n    const computedTree = spaceTree.compute();\n\n\n    const data = {\n        computedTree,\n        // planesPropertiesReference,\n        appConfiguration,\n        dockPath,\n    };\n\n    return data;\n}\n\n\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        PluridMetastate,\n        PluridRoute,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        PluridReactComponent,\n        PluridRouteMatch,\n    } from '~data/interfaces';\n\n    import {\n        collectApplicationsFromPath,\n    } from '../router';\n\n    import {\n        computeApplication,\n    } from '../computing';\n\n    import {\n        interaction,\n        generalEngine,\n        routing,\n        state as stateEngine,\n    } from '~services/engine';\n    // #endregion external\n// #endregion imports\n\n\n\n// #region module\nexport const serverComputeMetastate = async (\n    isoMatch: PluridRouteMatch,\n    paths: PluridRoute<PluridReactComponent>[],\n    globals: Record<string, string> | undefined,\n    hostname = 'origin',\n    /** The request's location, for THE ADDRESS BAR IS THE PAGE: a root deep link renders docked. */\n    location?: { pathname: string; search: string },\n): Promise<PluridMetastate> => {\n    const protocol = 'http';\n\n    const pluridApplications = await collectApplicationsFromPath(\n        isoMatch,\n        protocol,\n        hostname,\n        globals,\n    );\n\n    const states: any = {};\n\n    for (const application of pluridApplications) {\n        const {\n            planes,\n            view,\n            configuration,\n        } = application;\n        // console.log('serverComputeMetastate view', view);\n\n        // if (view.length === 0) {\n        //     continue;\n        // }\n\n        // the server's view is a fixed guess; the client re-measures and follows the docked page\n        const viewSize = { width: 1440, height: 821 };\n        const {\n            computedTree,\n            appConfiguration,\n            dockPath,\n        } = computeApplication(\n            planes,\n            (isoMatch.data as any).defaultConfiguration,\n            view,\n            hostname,\n            {\n                viewSize,\n                // the application always sits inside the static router here: the binding's query mode\n                dockPath: (merged) => {\n                    const binding = generalEngine.configuration.resolveDockingURL(merged.space.docking?.url, { router: true });\n                    return binding?.restore && location ? routing.dockingURLTarget(binding, location) : null;\n                },\n            },\n        );\n        // console.log({\n        //     computedTree,\n        // });\n\n        const cameraLimits = interaction.camera.resolveCameraLimits(appConfiguration.space.navigation);\n        const identity = interaction.camera.identityCamera(viewSize, appConfiguration.space.perspective);\n        const camera = stateEngine.dockedBootCamera(identity, computedTree, appConfiguration, viewSize, cameraLimits, dockPath) ?? identity;\n\n        const state = {\n            configuration: {\n                ...appConfiguration,\n            },\n            shortcuts: {\n                global: true,\n            },\n            // the themes the store resolves: the look's, unless the host set some (it was plurid always)\n            themes: stateEngine.resolveThemes(appConfiguration, undefined),\n            ui: {\n                toolbarScrollPosition: 50,\n                scrollPlaneID: '',\n                grabMode: false,\n                grabHold: false,\n                shortcutsOverlayVisible: false,\n            },\n            space: {\n                loading: false,\n                resolvedLayout: false,\n                transform: interaction.camera.cameraMatrix3d(camera, viewSize),\n                // (no legacy scalars: the state holds the camera, they are derived on read; they rode\n                // in every server metastate after the state stopped holding them, 2026-10-20)\n                tree: computedTree,\n                activeUniverseID: '',\n                camera,\n                cameraLimits,\n                motion: 'idle',\n                dockingPlaneID: '',\n                viewSize,\n                spaceSize: {\n                    width: 1440,\n                    height: 821,\n                    depth: 0,\n                    topCorner: {\n                        x: 0,\n                        y: 0,\n                        z: 0,\n                    },\n                },\n                view,\n                culledView: [],\n                culled: {\n                    hidden: [],\n                    frozen: [],\n                    detached: [],\n                },\n                selectedPlaneIDs: [],\n                draggingSelection: false,\n                history: {\n                    canUndo: false,\n                    canRedo: false,\n                    undoDepth: 0,\n                    redoDepth: 0,\n                    past: [],\n                    future: [],\n                },\n            },\n        };\n\n        // const id = matchedRoute.path.value;\n        const id = (isoMatch.data as any).value;\n        // console.log('matchedRoute id', id);\n\n        states[id] = state;\n    }\n\n    // console.log(states);\n\n    return {\n        states,\n    };\n}\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        useContext,\n        useMemo,\n    } from 'react';\n\n    import {\n        createSelectorHook,\n        createDispatchHook,\n    } from 'react-redux';\n\n    import {\n        TreePlaneLocation,\n        PluridPubSub as IPluridPubSub,\n    } from '@plurid/plurid-data';\n    import type {\n        PluridPinnedRect,\n        PluridPlaceOptions,\n        PluridPlaceResult,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import Context from '~services/context';\n    import StateContext from '~services/state/context';\n\n    import {\n        closePlane,\n        navigateToParent,\n        ClosePlaneOptions,\n    } from '~services/state/thunks/planes';\n\n    import {\n        framePlaneByID,\n    } from '~services/logic/camera';\n\n    import selectors from '~services/state/selectors';\n\n    import {\n        makeGetTreePlaneByID,\n        getCulledSets,\n        planeCullingState,\n    } from '~services/state/modules/space/selectors';\n\n    import type {\n        AppState,\n    } from '~services/state/store';\n    // #endregion external\n\n\n    // #region internal\n    import PluridPlaneIDContext, {\n        PluridPlaneDetailsContext,\n        PluridPlaneDetails,\n    } from './context';\n    // #endregion internal\n    import {\n        getDockedPlaneID,\n        makeGetIsPlaneAside,\n    } from '~services/state/modules/space/selectors';\n    import {\n        cameraCommand,\n    } from '~services/logic/camera';\n    import {\n        pinPlane,\n        placePinnedPlane,\n        collapsePinnedPlane,\n    } from '~services/logic/pinned';\n// #endregion imports\n\n\n\n// #region module\nexport type PluridPlaneIsolation = 'none' | 'self' | 'other';\n\nexport interface PluridPlaneLens {\n    /**\n     * The ID of the plane this content is rendered inside;\n     * `undefined` outside plane content (route exterior, shell, overlays).\n     */\n    planeID: string | undefined;\n    /**\n     * Hover-derived: this plane is the space's active plane.\n     */\n    active: boolean;\n    /**\n     * This plane is in the multi-selection working set.\n     */\n    selected: boolean;\n    /** This plane owns ordinary wheel input under `click-to-scroll` (clicked or docked). */\n    scrollSelected: boolean;\n    /**\n     * `'self'` when this plane is the isolated one, `'other'` when another\n     * plane is isolated (this content is faded out / inert), `'none'` when\n     * no isolation is active.\n     */\n    isolation: PluridPlaneIsolation;\n    /**\n     * The plane is shown in the space (`treePlane.show !== false`).\n     */\n    shown: boolean;\n    /**\n     * The culling pass's verdict (`space.culling`): `hidden` planes stop painting (state intact),\n     * `frozen` ones paint but skip layout-affecting work — a plane can pause video, polling or\n     * animation while it is not seen; `detached` ones (`culling.detach`) have their content\n     * retained (state kept, effects unmounted) or unmounted — a retained plane reads it on reveal.\n     */\n    culled: 'visible' | 'hidden' | 'frozen' | 'detached';\n    frozen: boolean;\n    /** The content is detached (`culling.detach`): retained or unmounted while the plane is hidden. */\n    detached: boolean;\n    /**\n     * The space zoom factor.\n     */\n    scale: number;\n    /**\n     * The measured view size the space computes against.\n     */\n    viewSize: {\n        width: number;\n        height: number;\n    };\n    /**\n     * The plane's spatial location - a STABLE reference that changes only\n     * when THIS plane moves (structural sharing).\n     */\n    location: TreePlaneLocation | undefined;\n    /** The plane's size in the tree — declared, measured or hand-set; 0 while unmeasured. */\n    width: number;\n    height: number;\n    /** How that size is determined: `measured` (the default), `manual` (a hand resize), `declared`. */\n    sizeMode: 'measured' | 'manual' | 'declared';\n    /**\n     * The plane's REGISTERED route — the pattern it was registered under (`/imagene/:id`), the\n     * same value as the `plurid` prop's `plane.value`; `undefined` outside plane content.\n     */\n    route: string | undefined;\n    /**\n     * The concrete values of the route (`/imagene/42` → `{ id: '42' }`) and its query.\n     */\n    parameters: Record<string, string>;\n    query: Record<string, string>;\n    fragments: PluridPlaneDetails['fragments'] | undefined;\n    /**\n     * The plane this one was spawned from; `undefined` for roots.\n     */\n    parentPlaneID: string | undefined;\n    /**\n     * The application's pubsub (the same object as the `plurid` prop's `pubSub`);\n     * `undefined` outside an application.\n     */\n    pubsub: IPluridPubSub | undefined;\n    /**\n     * Hide this plane. When it is the one in view the camera returns to its parent\n     * (`space.navigation.onClose`, overridable per call).\n     */\n    close: (options?: ClosePlaneOptions) => void;\n    /**\n     * Frame the parent plane (a child's \"back\"); no-op for roots.\n     */\n    navigateToParent: () => void;\n    /**\n     * Frame this plane.\n     */\n    frame: () => void;\n    /** The page presentation: `'page'` when the space presents as pages. */\n    presentation: 'space' | 'page';\n    /** This plane is the page the camera is docked on (or docking on). */\n    docked: boolean;\n    /** This plane is set aside: outside the docked page's lineage, faded and inert. */\n    aside: boolean;\n    /** Dock the camera on this plane (the page presentation). */\n    dock: () => void;\n    /** Reveal the space from this plane (the page presentation). */\n    reveal: () => void;\n    /** This plane is pinned to the screen (2026-10-31), above the space. */\n    pinned: boolean;\n    /** Pinned and collapsed to its title bar. */\n    collapsed: boolean;\n    /** Faded: it stands between the camera and the plane the camera rests on (`space.occlusion`). */\n    occluding: boolean;\n    /** Pin this plane to the screen, at `rect`, else a free slot on the right edge (`handle.planes.pin`). */\n    pin: (rect?: PluridPinnedRect) => boolean;\n    /** Put this pinned plane into the space where its frame is (`handle.planes.place`). */\n    place: (options?: PluridPlaceOptions) => Promise<PluridPlaceResult>;\n    /** Collapse this pinned plane to its title bar, or expand it (`false`); toggles without an argument. */\n    collapse: (collapsed?: boolean) => boolean;\n}\n\n\n// Bind to the engine's private react-redux context: the per-application store\n// lives ONLY under StateContext (Application provides it), never the default.\nconst useEngineSelector = createSelectorHook(StateContext as any);\nconst useEngineDispatch = createDispatchHook(StateContext as any);\n\nconst EMPTY_RECORD: Record<string, string> = {};\n\n\n/**\n * Live lens over the plane a content component is rendered inside - the\n * substrate seam for content-heavy consumers (pause a video when the plane\n * is not `active`, lazy-load when it becomes `shown`, pick asset quality\n * from `scale`).\n *\n * Field subscriptions are per-primitive (the engine's own granular-derived\n * pattern), so consuming content re-renders only when a consumed value\n * actually changes - not per orbit frame.\n *\n * Valid only under a `PluridApplication` (react-redux throws without the\n * engine store). Outside plane content but inside the application (route\n * exteriors, overlays) `planeID` is `undefined` and the plane-derived\n * fields are inert (`active`/`selected` false, `isolation` 'none',\n * `shown` true).\n */\nexport const usePluridPlane = (): PluridPlaneLens => {\n    const planeID = useContext(PluridPlaneIDContext);\n    const details = useContext(PluridPlaneDetailsContext);\n    const context = useContext(Context);\n    const dispatch = useEngineDispatch();\n\n    const getTreePlane = useMemo(\n        () => makeGetTreePlaneByID(),\n        [],\n    );\n\n    const active = useEngineSelector(\n        (state: AppState) => planeID !== undefined\n            && selectors.space.getActivePlaneID(state) === planeID,\n    );\n    const selected = useEngineSelector(\n        (state: AppState) => planeID !== undefined\n            && selectors.space.getSelectedPlaneIDs(state).includes(planeID),\n    );\n    const scrollSelected = useEngineSelector(\n        (state: AppState) => !!planeID\n            && state.configuration?.space?.gestures?.wheel === 'click-to-scroll'\n            && state.configuration.space.gestures?.buttonMap?.wheel !== 'disabled'\n            && (getDockedPlaneID(state) || state.ui.scrollPlaneID) === planeID,\n    );\n    const isolation = useEngineSelector(\n        (state: AppState): PluridPlaneIsolation => {\n            const isolatePlane = selectors.space.getIsolatePlane(state);\n            if (!isolatePlane) {\n                return 'none';\n            }\n            return isolatePlane === planeID ? 'self' : 'other';\n        },\n    );\n    const shown = useEngineSelector(\n        (state: AppState) => {\n            if (planeID === undefined) {\n                return true;\n            }\n            const treePlane = getTreePlane(state, planeID);\n            return treePlane ? treePlane.show !== false : true;\n        },\n    );\n    const scale = useEngineSelector(\n        (state: AppState) => selectors.space.getScale(state),\n    );\n    const viewSize = useEngineSelector(\n        (state: AppState) => selectors.space.getViewSize(state),\n    );\n    const location = useEngineSelector(\n        (state: AppState) => planeID !== undefined\n            ? getTreePlane(state, planeID)?.location\n            : undefined,\n    );\n    const width = useEngineSelector(\n        (state: AppState) => (planeID !== undefined ? getTreePlane(state, planeID)?.width : 0) ?? 0,\n    );\n    const height = useEngineSelector(\n        (state: AppState) => (planeID !== undefined ? getTreePlane(state, planeID)?.height : 0) ?? 0,\n    );\n    const sizeMode = useEngineSelector(\n        (state: AppState): 'measured' | 'manual' | 'declared' => (planeID !== undefined\n            ? getTreePlane(state, planeID)?.sizeMode\n            : undefined) ?? 'measured',\n    );\n    const presentation = useEngineSelector((state: AppState) => state.configuration?.space?.presentation ?? 'space');\n    const docked = useEngineSelector((state: AppState) => !!planeID && getDockedPlaneID(state) === planeID);\n    const getIsAside = useMemo(() => makeGetIsPlaneAside(), []);\n    const aside = useEngineSelector((state: AppState) => getIsAside(state, planeID));\n    const culled = useEngineSelector(\n        (state: AppState): 'visible' | 'hidden' | 'frozen' | 'detached' => planeCullingState(getCulledSets(state), planeID),\n    );\n    const pinned = useEngineSelector(\n        (state: AppState) => planeID !== undefined && !!getTreePlane(state, planeID)?.pinned,\n    );\n    const collapsed = useEngineSelector(\n        (state: AppState) => planeID !== undefined && !!getTreePlane(state, planeID)?.pinned?.collapsed,\n    );\n    const occluding = useEngineSelector(\n        (state: AppState) => planeID !== undefined && (state.space.occluded?.planeIDs ?? []).includes(planeID),\n    );\n\n    const commands = useMemo(() => ({\n        close: (options?: ClosePlaneOptions) => {\n            if (planeID !== undefined) {\n                dispatch(closePlane(planeID, options) as any);\n            }\n        },\n        navigateToParent: () => {\n            if (planeID !== undefined) {\n                dispatch(navigateToParent(planeID) as any);\n            }\n        },\n        frame: () => {\n            if (planeID !== undefined) {\n                dispatch(framePlaneByID(planeID) as any);\n            }\n        },\n        dock: () => {\n            if (planeID !== undefined) {\n                dispatch(cameraCommand({ kind: 'dock', planeID }, { animate: true }) as any);\n            }\n        },\n        reveal: () => {\n            dispatch(cameraCommand({ kind: 'reveal' }, { animate: true }) as any);\n        },\n        pin: (rect?: PluridPinnedRect) => (planeID !== undefined\n            ? dispatch(pinPlane(planeID, rect) as any) as unknown as boolean\n            : false),\n        place: (options?: PluridPlaceOptions) => (planeID !== undefined\n            ? dispatch(placePinnedPlane(planeID, options) as any) as unknown as Promise<PluridPlaceResult>\n            : Promise.resolve<PluridPlaceResult>('refused')),\n        collapse: (next?: boolean) => (planeID !== undefined\n            ? dispatch(collapsePinnedPlane(planeID, next) as any) as unknown as boolean\n            : false),\n    }), [\n        dispatch,\n        planeID,\n    ]);\n\n    return {\n        planeID,\n        presentation,\n        docked,\n        aside,\n        active,\n        selected,\n        scrollSelected,\n        isolation,\n        shown,\n        scale,\n        viewSize,\n        location,\n        width,\n        height,\n        sizeMode,\n        culled,\n        frozen: culled === 'frozen',\n        detached: culled === 'detached',\n        pinned,\n        collapsed,\n        occluding,\n        route: details?.value,\n        parameters: details?.parameters ?? EMPTY_RECORD,\n        query: details?.query ?? EMPTY_RECORD,\n        fragments: details?.fragments,\n        parentPlaneID: details?.parentPlaneID,\n        pubsub: context?.defaultPubSub,\n        ...commands,\n    };\n};\n// #endregion module\n\n\n\n// #region exports\nexport {\n    PluridPlaneIDContext,\n    PluridPlaneDetailsContext,\n};\n// #endregion exports\n","// #region imports\n    // #region libraries\n    import {\n        useState,\n        useEffect,\n    } from 'react';\n\n    import {\n        storage,\n    } from '@plurid/plurid-functions';\n\n    import {\n        PLURID_ROUTER_STORAGE,\n        PLURID_ROUTER_LOCATION_STORED,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n// #endregion imports\n\n\n\n// #region module\nexport const usePluridRouter = () => {\n    // #region state\n    const [\n        routerValue,\n        setRouterValue,\n    ] = useState('');\n    // #endregion state\n\n\n    // #region effects\n    useEffect(() => {\n        const fetchState = () => {\n            const state = storage.loadState(PLURID_ROUTER_STORAGE);\n            if (state) {\n                setRouterValue(state);\n            }\n        }\n        fetchState();\n\n        window.addEventListener(PLURID_ROUTER_LOCATION_STORED, fetchState);\n\n        return () => {\n            window.removeEventListener(PLURID_ROUTER_LOCATION_STORED, fetchState);\n        }\n    }, []);\n    // #endregion effects\n\n\n    return routerValue;\n}\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        useMemo,\n    } from 'react';\n\n    import {\n        CameraState,\n        CameraDelta,\n        CameraMotion,\n        PluridBookmarkAction,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        cameraCommand,\n        applyCameraDeltaCommand,\n        setHome,\n        CameraMotionOptions,\n    } from '~services/logic/camera';\n\n    import {\n        encodeCameraViewpoint,\n    } from '~services/logic/viewpoint';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        useEngineSelector,\n        useEngineDispatch,\n    } from '../engine';\n    import {\n        getDockedPlaneID,\n    } from '~services/state/modules/space/selectors';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport interface PluridCameraHandle {\n    /** The live camera. NOTE: changes on every orbit frame — a component using it re-renders per frame. */\n    camera: CameraState;\n    /** `idle | gesture | fling | tween`. */\n    motion: CameraMotion;\n    /** The current viewpoint, encoded (v1 by default, v2 with `space.viewpointURLVersion: 2`). */\n    viewpoint: string;\n    /** The runtime bookmarks (name → encoded viewpoint). */\n    bookmarks: Record<string, string>;\n    /** Apply one camera delta (orbit / pan / dolly / zoom / absolute), jumping by default. */\n    moveBy: (delta: CameraDelta, options?: CameraMotionOptions) => void;\n    /** Move to an encoded viewpoint (v1 or v2), tweening by default. */\n    moveTo: (viewpoint: string, options?: CameraMotionOptions) => void;\n    /** Frame a plane, the selection, or everything. */\n    frame: (target?: { planeID?: string; selection?: boolean }, options?: CameraMotionOptions) => void;\n    fit: (options?: CameraMotionOptions) => void;\n    reset: (options?: CameraMotionOptions) => void;\n    home: (options?: CameraMotionOptions) => void;\n    /** Make `viewpoint` (or the current camera) the home viewpoint. */\n    setHome: (viewpoint?: string) => void;\n    preset: (name: string, options?: CameraMotionOptions) => void;\n    bookmark: (name: string, action?: PluridBookmarkAction, options?: CameraMotionOptions) => void;\n    /** The page presentation: the id of the page the camera is docked on (or docking on), `''` otherwise. */\n    docked: string;\n    /** Dock on a page: the named one, else the docked one, else the page nearest the view center. */\n    dock: (planeID?: string, options?: CameraMotionOptions) => void;\n    /** Reveal the space from the docked page (`space.docking.reveal`). */\n    reveal: (options?: CameraMotionOptions) => void;\n}\n\n\n/**\n * The camera, as a hook: read it (per frame) and drive every programmatic move — each one an\n * interruptible tween through the engine's motion controller (or a jump with `animate: false`).\n * Works anywhere under a `PluridApplication`.\n */\nexport const useCamera = (): PluridCameraHandle => {\n    const dispatch = useEngineDispatch();\n    const camera = useEngineSelector((state) => state.space.camera);\n    const motion = useEngineSelector((state) => state.space.motion);\n    const bookmarks = useEngineSelector((state) => state.space.bookmarks);\n    const viewSize = useEngineSelector((state) => state.space.viewSize);\n    const version = useEngineSelector((state) => state.configuration.space.viewpointURLVersion ?? 1);\n    const docked = useEngineSelector(getDockedPlaneID);\n\n    const viewpoint = useMemo(\n        () => encodeCameraViewpoint(camera, viewSize, version as 1 | 2),\n        [camera, viewSize, version],\n    );\n\n    const commands = useMemo(() => ({\n        moveBy: (delta: CameraDelta, options: CameraMotionOptions = {}) => {\n            dispatch(applyCameraDeltaCommand(delta, options.animate ?? false) as any);\n        },\n        moveTo: (encoded: string, options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'viewpoint', viewpoint: encoded }, { animate: true, ...options }) as any);\n        },\n        frame: (target: { planeID?: string; selection?: boolean } = {}, options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'frame', planeID: target.planeID, selection: target.selection }, { animate: true, ...options }) as any);\n        },\n        fit: (options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'fit' }, { animate: true, ...options }) as any);\n        },\n        reset: (options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'reset' }, { animate: true, ...options }) as any);\n        },\n        home: (options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'home' }, { animate: true, ...options }) as any);\n        },\n        setHome: (encoded?: string) => {\n            dispatch(setHome(encoded) as any);\n        },\n        preset: (name: string, options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'preset', name }, { animate: true, ...options }) as any);\n        },\n        dock: (planeID?: string, options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'dock', planeID }, { animate: true, ...options }) as any);\n        },\n        reveal: (options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'reveal' }, { animate: true, ...options }) as any);\n        },\n        bookmark: (name: string, action: PluridBookmarkAction = 'go', options: CameraMotionOptions = {}) => {\n            dispatch(cameraCommand({ kind: 'bookmark', name, action }, { animate: true, ...options }) as any);\n        },\n    }), [dispatch]);\n\n    return {\n        camera,\n        docked,\n        motion,\n        viewpoint,\n        bookmarks: bookmarks || {},\n        ...commands,\n    };\n};\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        useMemo,\n    } from 'react';\n    // #endregion libraries\n\n\n    // #region external\n    import actions from '~services/state/actions';\n\n    import {\n        alignSelection,\n        distributeSelection,\n        duplicateSelection,\n        copySelection,\n        pasteFragment,\n    } from '~services/state/thunks/selection';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        useEngineSelector,\n        useEngineDispatch,\n    } from '../engine';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\nexport type PluridAlignEdge = 'left' | 'right' | 'top' | 'bottom' | 'centerX' | 'centerY';\n\nexport interface PluridSelectionHandle {\n    /** The selected plane ids, in selection order. */\n    selected: string[];\n    /** The hover-active plane id ('' when none). */\n    activePlaneID: string;\n    isSelected: (planeID: string) => boolean;\n    select: (planeIDs: string[]) => void;\n    toggle: (planeID: string) => void;\n    add: (planeID: string) => void;\n    clear: () => void;\n    selectAll: () => void;\n    invert: () => void;\n    align: (edge: PluridAlignEdge) => void;\n    distribute: (axis: 'x' | 'y') => void;\n    /** Offset copies of the selected root planes; the copies become the selection. */\n    duplicate: (offset?: number) => void;\n    /**\n     * Put the selection on the clipboard as an arrangement fragment — the same text ⌘/Ctrl+C over\n     * the space writes, so it pastes into another tab, window or site running plurid.\n     */\n    copy: (options?: { cut?: boolean }) => void;\n    cut: () => void;\n    /**\n     * Paste a fragment: the given text, else what this document last copied. Text that is not a\n     * fragment does nothing. Routes this application does not register are dropped.\n     */\n    paste: (text?: string) => void;\n}\n\n\n/** The selection, as a hook: read it and edit it (the same reducers the gestures and topics use). */\nexport const useSelection = (): PluridSelectionHandle => {\n    const dispatch = useEngineDispatch();\n    const selected = useEngineSelector((state) => state.space.selectedPlaneIDs);\n    const activePlaneID = useEngineSelector((state) => state.space.activePlaneID);\n\n    const commands = useMemo(() => ({\n        select: (planeIDs: string[]) => { dispatch(actions.space.setSelection(planeIDs)); },\n        toggle: (planeID: string) => { dispatch(actions.space.toggleSelection(planeID)); },\n        add: (planeID: string) => { dispatch(actions.space.addToSelection(planeID)); },\n        clear: () => { dispatch(actions.space.clearSelection()); },\n        selectAll: () => { dispatch(actions.space.selectAll()); },\n        invert: () => { dispatch(actions.space.invertSelection()); },\n        align: (edge: PluridAlignEdge) => { dispatch(alignSelection(edge) as any); },\n        distribute: (axis: 'x' | 'y') => { dispatch(distributeSelection(axis) as any); },\n        duplicate: (offset?: number) => { dispatch(duplicateSelection(offset) as any); },\n        copy: (options: { cut?: boolean } = {}) => { dispatch(copySelection(options) as any); },\n        cut: () => { dispatch(copySelection({ cut: true }) as any); },\n        paste: (text?: string) => { dispatch(pasteFragment({ text }) as any); },\n    }), [dispatch]);\n\n    return {\n        selected,\n        activePlaneID,\n        isSelected: (planeID: string) => selected.includes(planeID),\n        ...commands,\n    };\n};\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        useEffect,\n        useRef,\n    } from 'react';\n\n    import {\n        PluridPubSubTopicName,\n        PluridPubSubPayloads,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        warnOnce,\n    } from '~services/logic/development/warn';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        useEnginePubSub,\n    } from '../engine';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\n/**\n * Subscribe to one topic of the instance bus for the life of the component. Typed per topic\n * (`usePluridPubSub('space.changed', ({ kind, value }) => …)`); the latest callback is always the\n * one called, without re-subscribing on every render.\n */\nexport const usePluridPubSub = <T extends PluridPubSubTopicName>(\n    topic: T,\n    callback: (data: PluridPubSubPayloads[T]) => void,\n) => {\n    const pubsub = useEnginePubSub();\n    const latest = useRef(callback);\n    latest.current = callback;\n\n    useEffect(() => {\n        if (!pubsub) {\n            // outside an application there is no bus to hear: said, where it used to subscribe to nothing\n            warnOnce(\n                'pubsub-hook-outside:' + String(topic),\n                `usePluridPubSub('${String(topic)}') is outside a <PluridApplication>, so it hears nothing: call it from plane content or a render slot, or subscribe on the api's bus (onReady).`,\n            );\n            return;\n        }\n        const selector = pubsub.subscribe({\n            topic,\n            callback: (data: PluridPubSubPayloads[T]) => {\n                latest.current(data);\n            },\n        } as any);\n\n        return () => {\n            pubsub.unsubscribe(selector);\n        };\n    }, [\n        pubsub,\n        topic,\n    ]);\n};\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        useMemo,\n        useContext,\n    } from 'react';\n\n    import {\n        PluridApi,\n        PluridState,\n    } from '@plurid/plurid-data';\n    // #endregion libraries\n\n\n    // #region external\n    import {\n        encodeCameraViewpoint,\n    } from '~services/logic/viewpoint';\n    // #endregion external\n\n\n    // #region internal\n    import {\n        useEngineStore,\n        useEnginePubSub,\n    } from '../engine';\n    import PluridContext from '~services/context';\n    import {\n        buildInspection,\n    } from '~services/logic/inspector';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\n/**\n * The `onReady` api, as a hook (the same `store` / `pubsub` / `getSnapshot` / `getViewpoint`) —\n * for components rendered under the application that want the escape hatch without threading a\n * ref from `onReady`. Stable across renders.\n */\nexport const usePluridApi = (): PluridApi => {\n    const store = useEngineStore();\n    const pubsub = useEnginePubSub();\n    const context = useContext(PluridContext);\n\n    return useMemo<PluridApi>(() => ({\n        store: store as any,\n        pubsub: pubsub as any,\n        getSnapshot: () => store.getState() as unknown as PluridState,\n        getViewpoint: (options) => {\n            const state = store.getState();\n            const version = options?.version ?? state.configuration.space.viewpointURLVersion ?? 1;\n            return encodeCameraViewpoint(state.space.camera, state.space.viewSize, version as 1 | 2);\n        },\n        inspect: () => buildInspection(store.getState() as any, context?.inspector),\n    }), [store, pubsub, context?.inspector]);\n};\n// #endregion module\n","// #region imports\n    // #region libraries\n    import {\n        Look,\n    } from '@plurid/plurid-themes';\n    // #endregion libraries\n\n    // #region external\n    import {\n        getLook,\n    } from '~services/look';\n    // #endregion external\n\n    // #region internal\n    import {\n        useEngineSelector,\n    } from '../engine';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\n/**\n * The look in force — its name, base and tokens — for chrome rendered inside the application (a\n * `render*` slot, a plane's content). The object is identity-stable until the configuration's `look`\n * changes, so it is safe as a dependency.\n */\nexport const useLook = (): Look => useEngineSelector(getLook);\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React from 'react';\n    import styled from 'styled-components';\n    // #endregion libraries\n\n    // #region external\n    import {\n        chromeRoot,\n        chromeControl,\n        chromePill,\n        chromePanel,\n        chromeKey,\n        chromeField,\n        chromeDocked,\n    } from '~services/styled/chrome';\n    // #endregion external\n// #endregion imports\n\n\n\n// #region module\n/**\n * THE VOCABULARY AS COMPONENTS, so custom chrome matches the look by construction: a PILL (a control),\n * a PANEL (a toolbar, a drawer, a dialog), a KEY. Each is a styled element on the look's tokens; give\n * them `data-plurid-control` / `data-plurid-overlay` like the engine's own pieces and the view treats\n * them as chrome (pointer routing, the docked fade).\n */\n\n/**\n * A control: 32 px, the rim, the halo, the blur; `data-plurid-active=\"true\"` paints the glyph in the\n * accent. Fades with the docked state. Marked `data-plurid-pill`, so the view lets it go of the\n * focus after a pointer click (see the View: momentary chrome keeps no focus a key could light).\n */\nexport const PluridPill = styled.button.attrs({ 'data-plurid-pill': '' } as Record<string, string>)`\n    ${chromeControl}\n    ${chromePill}\n    ${chromeDocked}\n`;\n\n/** A pill with an icon: the same control, `aria-label` required. */\nexport const PluridIconButton: React.FC<\n    React.ButtonHTMLAttributes<HTMLButtonElement> & { 'aria-label': string }\n> = (properties) => (\n    <PluridPill\n        type=\"button\"\n        {...properties}\n    />\n);\n\n/** A surface: the solid fill, the panel radius, the rim, the shadow; typography from the look. */\nexport const PluridPanel = styled.div`\n    ${chromeRoot}\n    ${chromePanel}\n`;\n\n/** A keyboard key. */\nexport const PluridKey = styled.kbd`\n    ${chromeKey}\n`;\n\n/** A text field: the look's material, ink and focus ring; the caller gives it its width. */\nexport const PluridField = styled.input`\n    ${chromeControl}\n    ${chromeField}\n`;\n// #endregion module\n","// #region imports\n    // #region libraries\n    import React, {\n        lazy,\n        Suspense,\n    } from 'react';\n    import type {\n        ComponentProps,\n        FunctionComponent,\n        JSXElementConstructor,\n    } from 'react';\n\n    import {\n        Theme,\n    } from '@plurid/plurid-themes';\n\n    import {\n        // #region constants\n        PLURID_PUBSUB_TOPIC,\n        PLURID_PUBSUB_EMITTED_TOPICS,\n        PLURID_SHORTCUTS,\n        PLURID_CHANGE_KINDS,\n        // #endregion constants\n\n\n        // #region interfaces\n        PluridPlane,\n        PluridView,\n        PluridUniverse,\n        PluridConfiguration,\n        PluridPartialConfiguration,\n        FlatPluridConfiguration,\n        PluridRouterProperties,\n        RecursivePartial,\n\n        PluridRoute,\n        PluridRouteSpace,\n        PluridRouteUniverse,\n        PluridRoutePlane,\n\n        ComponentWithPlurid,\n        PluridPlaneComponentProperty,\n        PluridRouteComponentProperty,\n\n        PluridPreserve,\n        PluridPreserveTransmission,\n\n        PluridPubSubPublishMessage,\n        PluridPubSubSubscribeMessage,\n\n        PluridApi,\n    PluridInspection,\n    PluridInspectionPlane,\n    PluridInspectorRegistry,\n        PluridStore,\n        PluridStorageAdapter,\n\n        CameraState,\n        CameraDelta,\n        CameraLimits,\n        CameraMotion,\n        Vec2,\n        Vec3,\n        // #endregion interfaces\n\n\n        // #region enumerations\n        LAYOUT_TYPES as SPACE_LAYOUT,\n        SIZES,\n        TRANSFORM_MODES,\n        TRANSFORM_TOUCHES,\n        PLURID_ROUTER_LOCATION_CHANGED,\n        PLURID_ROUTER_LOCATION_STORED,\n        // #endregion enumerations\n    } from '@plurid/plurid-data';\n\n    import {\n        IsoMatcher as PluridIsoMatcher,\n        RouteParser as PluridRouteParser,\n        pluridRouterNavigate,\n        definePluridConfiguration,\n    } from '@plurid/plurid-engine';\n\n    import PluridPubSub from '@plurid/plurid-pubsub';\n    // #endregion libraries\n\n\n    // #region internal\n    import {\n        PluridReactComponent,\n        PluridReactPlaneComponent,\n        PluridReactRouteComponent,\n        PluridReactPlane,\n        PluridReactRoute,\n        PluridReactRoutePlane,\n        PluridRouteMatch,\n        PluridReactRenderSlot,\n        PluridReactSlots,\n        PluridReactApplicationProperties,\n    } from './data/interfaces';\n\n    import PluridApplication, {\n        PluridApplicationProvider,\n        usePluridApplicationDefaults,\n    } from './containers/Application';\n    import PluridRouterBrowser from './containers/RouterBrowser';\n    import PluridRouterStatic from './containers/RouterStatic';\n    import PluridProvider from './containers/Provider';\n    import PluridDocument, {\n        PluridDocumentScope,\n    } from './components/utilities/Document';\n    import {\n        usePluridDocument,\n        createDocumentRegistry,\n    } from './services/document';\n    import {\n        composePluridProviders,\n    } from './services/utilities/providers';\n\n    import PluridLink from './components/links/Link';\n    import PluridRouterLink from './components/links/RouterLink';\n    import ConnectedApplicationConfigurator from './components/utilities/ApplicationConfigurator';\n    import ConnectedPlaneConfigurator from './components/utilities/PlaneConfigurator';\n    import ConnectedExternalPlane from './components/planes/ExternalPlane';\n    import ConnectedIframePlane from './components/planes/IframePlane';\n    import ConnectedVirtualList from './components/virtuals/List';\n\n    import PluridPlaneBridge from './components/structural/Plane/components/PlaneBridge';\n    import PluridPlaneContent from './components/structural/Plane/components/PlaneContent';\n    import PluridPlaneControls from './components/structural/Plane/components/PlaneControls';\n    import pluridStateModules from './services/state/modules';\n\n    import {\n        serverComputeMetastate,\n    } from './services/logic/server';\n\n    import {\n        getDirectPlaneMatch,\n    } from './services/logic/router';\n\n    import {\n        encodeViewpoint,\n        decodeViewpoint,\n        encodeCameraViewpoint,\n        decodeCameraViewpoint,\n    } from './services/logic/viewpoint';\n\n    import {\n        usePluridRouter,\n        usePluridPlane,\n        useCamera,\n        useSelection,\n        usePluridHistory,\n        usePluridBookmarks,\n        usePluridPubSub,\n        usePluridApi,\n        useLook,\n    } from './services/hooks';\n\n    import {\n        PluridPill,\n        PluridPanel,\n        PluridIconButton,\n        PluridKey,\n        PluridField,\n    } from './components/utilities/Chrome';\n    import {\n        PluridLookStyle,\n        lookStylesheet,\n    } from './services/look';\n    import {\n        chromeRoot,\n        chromeControl,\n        chromePill,\n        chromePanel,\n        chromeLine,\n        chromeDocked,\n        chromeKey,\n        chromeField,\n        chromeFocusRing,\n    } from './services/styled/chrome';\n    import {\n        chromeModeOf,\n        showsChrome,\n    } from './services/chrome';\n\n    // Escape-hatch primitives (Tier 3): the same building blocks the engine uses internally, so a\n    // power-user can read derived state and compute \"did the arrangement change\" without forking.\n    import pluridSelectors from './services/state/selectors';\n    import {\n        arrangementSignature,\n    } from './services/logic/arrangement/signature';\n    import {\n        fragmentOf,\n        serializeFragment,\n        parseFragment,\n        materializeFragment,\n        FRAGMENT_MARKER,\n        FRAGMENT_VERSION,\n    } from './services/logic/arrangement/fragment';\n    import type {\n        ArrangementFragment,\n        FragmentPlane,\n        FragmentLink,\n        MaterializeFragmentOptions,\n        MaterializedFragment,\n    } from './services/logic/arrangement/fragment';\n    import { domID } from './services/logic/dom';\n    // #endregion internal\n// #endregion imports\n\n\n\n// #region module\n// PluridIsoMatcher / PluridRouteParser are imported by name from the engine (above) so\n// TS can reference them as external named imports in this package's .d.ts (a namespace\n// member would inline anonymously and trip TS4094 on the classes' private members).\n\n\nimport {\n    runShortcut,\n} from '~services/logic/shortcuts';\nimport {\n    describeShortcuts,\n} from '~services/logic/shortcuts/registry';\nimport {\n    paletteRows,\n    filterRows,\n    scoreMatch,\n} from '~services/logic/palette';\nimport {\n    namedViewpoints,\n    goViewpoint,\n} from '~services/logic/viewpoints';\n\n\n// THE DEBUGGERS LOAD ON FIRST USE (2026-10-20): imported here for `internals`, they rode in the\n// main chunk although the space and the planes load them lazily. Each is a component that loads its\n// debugger when it first renders, inside its own Suspense (a host needs no boundary).\nconst LazyPlaneDebugger = lazy(() => import('./components/structural/Plane/components/PlaneDebugger'));\nconst LazySpaceDebugger = lazy(() => import('./components/structural/Space/components/SpaceDebugger'));\nconst PluridPlaneDebugger = (\n    properties: ComponentProps<typeof LazyPlaneDebugger>,\n) => (\n    <Suspense fallback={null}>\n        <LazyPlaneDebugger {...properties} />\n    </Suspense>\n);\nconst PluridSpaceDebugger = (\n    properties: ComponentProps<typeof LazySpaceDebugger>,\n) => (\n    <Suspense fallback={null}>\n        <LazySpaceDebugger {...properties} />\n    </Suspense>\n);\n\n\nconst internals = {\n    /** The vocabulary's css fragments (styled-components `css`): compose your own chrome on the look's tokens. */\n    chrome: {\n        chromeRoot,\n        chromeControl,\n        chromePill,\n        chromePanel,\n        chromeLine,\n        chromeDocked,\n        chromeKey,\n        chromeField,\n        chromeFocusRing,\n    },\n    PluridPlaneBridge,\n    PluridPlaneContent,\n    PluridPlaneControls,\n    PluridPlaneDebugger,\n    PluridSpaceDebugger,\n    /**\n     * THE COMMANDS, as data and as one call: `runShortcut(id, { dispatch, state, pubsub })` runs a\n     * binding without a key press (a host's menu, a custom palette), `describeShortcuts` is what the\n     * help and the palette render, `paletteRows` / `filterRows` / `scoreMatch` build a list like the\n     * engine's own.\n     */\n    runShortcut,\n    describeShortcuts,\n    paletteRows,\n    filterRows,\n    scoreMatch,\n    /**\n     * THE NAMED VIEWPOINTS: the bookmarks, the presets and home as ONE list — what the Bookmarks\n     * drawer and the palette both read; `goViewpoint(entry)` travels to any of them.\n     */\n    namedViewpoints,\n    goViewpoint,\n};\n\n/**\n * A connected component as a host uses it. react-redux's own `store` and `context` props are the\n * engine's plumbing (the application's store reaches the component through its own context), and\n * they showed in the published props as if a host should pass them (2026-09-29).\n */\ntype PluridConnectedComponent<Component extends JSXElementConstructor<any>> = FunctionComponent<\n    Omit<ComponentProps<Component>, 'store' | 'context'>\n>;\n\nconst PluridApplicationConfigurator = ConnectedApplicationConfigurator as PluridConnectedComponent<typeof ConnectedApplicationConfigurator>;\nconst PluridPlaneConfigurator = ConnectedPlaneConfigurator as PluridConnectedComponent<typeof ConnectedPlaneConfigurator>;\nconst PluridExternalPlane = ConnectedExternalPlane as PluridConnectedComponent<typeof ConnectedExternalPlane>;\nconst PluridIframePlane = ConnectedIframePlane as PluridConnectedComponent<typeof ConnectedIframePlane>;\nconst PluridVirtualList = ConnectedVirtualList as PluridConnectedComponent<typeof ConnectedVirtualList>;\n\n\n/**\n * Components and utilities.\n */\nconst Plurid = {\n    // #region Components\n    Application: PluridApplication,\n    RouterStatic: PluridRouterStatic,\n    RouterBrowser: PluridRouterBrowser,\n    Provider: PluridProvider,\n\n    Link: PluridLink,\n    RouterLink: PluridRouterLink,\n    ApplicationConfigurator: PluridApplicationConfigurator,\n    PlaneConfigurator: PluridPlaneConfigurator,\n    ExternalPlane: PluridExternalPlane,\n    IframePlane: PluridIframePlane,\n    VirtualList: PluridVirtualList,\n    // #endregion Components\n\n\n    // #region Utilities\n    /** Enumerations */\n    SPACE_LAYOUT,\n    SIZES,\n    TRANSFORM_MODES,\n    TRANSFORM_TOUCHES,\n\n    /** PubSub */\n    PubSub: PluridPubSub,\n    PUBSUB_TOPIC: PLURID_PUBSUB_TOPIC,\n\n    /** Server */\n    serverComputeMetastate,\n\n    /** Router */\n    IsoMatcher: PluridIsoMatcher,\n    routerNavigate: pluridRouterNavigate,\n\n    /** Viewpoint */\n    encodeViewpoint,\n    decodeViewpoint,\n    encodeCameraViewpoint,\n    decodeCameraViewpoint,\n\n    /** Escape-hatch primitives */\n    selectors: pluridSelectors,\n    definePluridConfiguration,\n    arrangementSignature,\n    /** THE PERSISTENCE FORMAT: a piece of a space as text, addressed by path (see `docs/CONTROL_SURFACE.md`, the clipboard). */\n    fragmentOf,\n    serializeFragment,\n    parseFragment,\n    materializeFragment,\n    FRAGMENT_MARKER,\n    FRAGMENT_VERSION,\n    /** A plane's DOM id (`plurid-<digest>`); `data-plurid-plane` carries the plane id itself. */\n    domID,\n\n    internals,\n    // #endregion Utilities\n};\n\n\ntype PluridRouterPartialProperties = Partial<PluridRouterProperties<PluridReactComponent>>;\n// #endregion module\n\n\n\n// #region exports\nexport {\n    // #region Components\n    PluridApplication,\n    /**\n     * ONE CONFIGURATION SURFACE FOR BOTH MOUNT PATHS: wrap a router with it and\n     * every application the router constructs takes the host's render slots,\n     * persistence and observation — the eighteen props the route-driven path\n     * could not forward. An application's own prop still wins.\n     */\n    PluridApplicationProvider,\n    usePluridApplicationDefaults,\n    PluridRouterBrowser,\n    PluridRouterStatic,\n    PluridProvider,\n    /** The document head as data: a component (props and / or Helmet-style children), a hook, the scope, the registry */\n    PluridDocument,\n    PluridDocumentScope,\n    usePluridDocument,\n    createDocumentRegistry,\n    /** Nest service providers identically on the server and the client (`layers[0]` innermost) */\n    composePluridProviders,\n\n    PluridLink,\n    PluridRouterLink,\n    PluridApplicationConfigurator,\n    PluridPlaneConfigurator,\n    PluridExternalPlane,\n    PluridIframePlane,\n    PluridVirtualList,\n    // #endregion Components\n\n\n    // #region Utilities\n    /** Enumerations */\n    SPACE_LAYOUT,\n    SIZES,\n    TRANSFORM_MODES,\n    TRANSFORM_TOUCHES,\n    PLURID_ROUTER_LOCATION_CHANGED,\n    PLURID_ROUTER_LOCATION_STORED,\n\n    /** Engine */\n    PluridIsoMatcher,\n    PluridRouteParser,\n    definePluridConfiguration,\n\n    /** PubSub */\n    PluridPubSub,\n    PLURID_PUBSUB_TOPIC,\n\n    /** Server */\n    serverComputeMetastate,\n\n    /** Router */\n    pluridRouterNavigate,\n    usePluridRouter,\n\n    /** Plane lens - live per-plane signals for plane content (the substrate seam) */\n    usePluridPlane,\n    /** Hooks over the engine, for anything rendered under an application */\n    useCamera,\n    useSelection,\n    usePluridHistory,\n    usePluridBookmarks,\n    usePluridPubSub,\n    usePluridApi,\n    useLook,\n    PluridPill,\n    PluridPanel,\n    PluridIconButton,\n    PluridKey,\n    PluridField,\n    PluridLookStyle,\n    lookStylesheet,\n    chromeModeOf,\n    showsChrome,\n\n    getDirectPlaneMatch,\n\n    /** Viewpoint — encode/decode the camera ↔ the `v`-style string, for full host control */\n    encodeViewpoint,\n    decodeViewpoint,\n    /** The camera-aware codec: v1 (legacy scalars) or v2 (full camera: pivot + pan preserved) */\n    encodeCameraViewpoint,\n    decodeCameraViewpoint,\n\n    /** state */\n    pluridStateModules,\n\n    /**\n     * Escape-hatch primitives — the engine's own building blocks, for hosts building custom\n     * controls/layout: `pluridSelectors` (read derived state off the store from `onReady`) +\n     * `arrangementSignature` (the structural hash undo/collaboration agree on). Lower-level geometry\n     * (tree reconcile, location compute, interaction) lives on `@plurid/plurid-engine` (`space.tree`,\n     * `space.location`, `interaction`).\n     */\n    pluridSelectors,\n    arrangementSignature,\n    /**\n     * THE PERSISTENCE FORMAT, by name as the docs import it: a piece of a space as text, addressed\n     * by path. They were on the default export alone, so `import { fragmentOf }` was `undefined`.\n     */\n    fragmentOf,\n    serializeFragment,\n    parseFragment,\n    materializeFragment,\n    FRAGMENT_MARKER,\n    FRAGMENT_VERSION,\n    /** A plane's DOM id (`plurid-<digest>`); `data-plurid-plane` carries the plane id itself. */\n    domID,\n    /** The bus's vocabulary: the emitted topics, every shortcut the engine knows, every `space.changed` kind. */\n    PLURID_PUBSUB_EMITTED_TOPICS,\n    PLURID_SHORTCUTS,\n    PLURID_CHANGE_KINDS,\n\n    internals,\n    // #endregion Utilities\n};\n\n\n// Type-only re-exports use `export type` so esbuild (per-file transpile) elides them at\n// runtime, instead of emitting runtime re-exports of names that have no JS value.\nexport type {\n\n    PluridPlaneLens,\n    PluridPlaneIsolation,\n} from './services/hooks/plane';\nexport type {\n    PluridDocumentRegistry,\n    PluridDocumentBaseLayer,\n} from './services/document/registry';\nexport type {\n    PluridDocumentProperties,\n} from './components/utilities/Document';\nexport type {\n    PluridProviderLayer,\n} from './services/utilities/providers';\nexport type {\n    PluridNamedViewpoint,\n    PluridDocument as PluridDocumentDescriptor,\n    PluridDocumentMeta,\n    PluridDocumentLink,\n    PluridDocumentScript,\n    PluridDocumentStyle,\n    PluridDocumentContext,\n    PluridDocumentResolver,\n    PluridDocumentSource,\n} from '@plurid/plurid-data';\nexport type {\n    PluridCameraHandle,\n} from './services/hooks/camera';\nexport type {\n    PluridSelectionHandle,\n} from './services/hooks/selection';\nexport type {\n    PluridHistoryHandle,\n} from './services/hooks/history';\nexport type {\n    PluridBookmarksHandle,\n} from './services/hooks/bookmarks';\nexport type {\n    PluridApplicationHandle,\n} from './containers/Application/handle';\nexport type {\n    PluridApplicationDefaults,\n    PluridApplicationProviderProperties,\n} from './containers/Application/provider';\nexport type {\n    PluridPlaneErrorProperties,\n} from './components/utilities/ErrorBoundary';\n\n/**\n * A PLANE'S IDENTITY, WITHOUT THE DOM AND WITHOUT A REGEX.\n *\n * `planeParameters(tree, planeID)` gives back the route's own parsed\n * parameters — `/thread/:threadID` → `{ threadID }` — so a host reading a\n * `selection` or `tree` observation never has to parse an engine plane id back\n * into its own vocabulary. `planeOf` and `planeIDsOf` walk the tree the same\n * way the engine does.\n */\nexport {\n    planeParameters,\n    parametersOf,\n    planeOf,\n    planeIDsOf,\n} from './services/logic/correlation';\nexport type {\n    PluridConfigurationSpaceDocking,\n    PluridConfigurationSpace,\n    PluridConfigurationElementsPlane,\n    TreePlane,\n    PlaneLink,\n    LinkCoordinates,\n    PluridBookmarkAction,\n    PluridChangeKind,\n    PluridShortcutID,\n    PluridState,\n    PluridApplicationView,\n    PluridPubSubPayloads,\n    PluridPlaneObservation,\n    PluridRefusedObservation,\n    PluridPlaneErrorObservation,\n    PluridShortcutDefinition,\n} from '@plurid/plurid-data';\nexport type {\n    ClosePlaneOptions,\n} from './services/state/thunks/planes';\nexport type {\n    AppState as PluridStoreState,\n} from './services/state/store';\nexport type {\n    BridgeGeometry,\n} from './services/logic/link/bridge';\nexport {\n    bridgeGeometry,\n    BRIDGE_REACH_VARIABLE,\n    BRIDGE_ANGLE_VARIABLE,\n} from './services/logic/link/bridge';\nexport {\n    measureLinkCoordinates,\n    resolveLinkID,\n} from './services/logic/link/measure';\nexport {\n    dockCommand,\n    revealCommand,\n    resolveCameraTarget,\n    landingDockPlaneID,\n} from './services/logic/camera';\n/**\n * TOURS AND ANCHORS (2026-10-30): a camera named by a plane, and stops through them. The player is\n * the handle's (`handle.tour`) and the bus's (`space.tour`); these are the pure pieces a host reads a\n * saved tour, names a stop or checks one with: `anchorOf(api.getSnapshot())` is where the camera is,\n * `resolveAnchor(state, anchor)` where an anchor lands now.\n */\nexport {\n    anchorOf,\n    resolveAnchor,\n    sameAnchor,\n    parseTour,\n    serializeTour,\n    PLURID_TOUR_FORMAT,\n    PLURID_TOUR_MAX_STEPS,\n    PLURID_TOUR_MAX_DWELL,\n} from './services/logic/tour';\nexport type {\n    PluridTourParse,\n} from './services/logic/tour';\nexport {\n    whenAtRest,\n} from './services/logic/rest';\nexport type {\n    PluridRestOptions,\n} from './services/logic/rest';\nexport type {\n    PluridAnchorPose,\n    PluridAnchorPoseMode,\n    PluridPlaneAnchor,\n    PluridAnchorMissing,\n    PluridAnchorResolution,\n    PluridTour,\n    PluridTourStep,\n    PluridTourState,\n    PluridTourStatus,\n    PluridTourEvent,\n    PluridTourEnd,\n    PluridTourEndReason,\n    PluridTourPauseReason,\n    PluridTourSkipReason,\n    PluridTourPlayOptions,\n    PluridTourStepContext,\n    PluridTourMissingContext,\n    PluridTourStepAction,\n    PluridTourMissingAction,\n    PluridTourRecordOptions,\n    PluridTourRecorder,\n    PluridTourControls,\n    PluridTourObservation,\n    PluridTourAction,\n    PluridPubSubMessageTour,\n    PluridPubSubMotion,\n    PluridMotionEasing,\n} from '@plurid/plurid-data';\n/**\n * PINNED AND STACKED PLANES (2026-10-31): the commands are the handle's (`handle.planes`), the plane\n * lens's (`usePluridPlane().pin / place / collapse`) and the bus's (`space.pinned`, `space.stack`);\n * these are the pure pieces: the pinned planes and the stacks of a state, as the bus lists them.\n */\nexport {\n    pinnedPlanesOf,\n} from './services/logic/pinned';\nexport {\n    stacksOf,\n    STACK_MINIMUM,\n    STACK_MAXIMUM,\n} from './services/logic/stack';\nexport type {\n    PluridPinnedAnchor,\n    PluridPinnedRect,\n    PluridPinnedState,\n    PluridPinnedPlane,\n    PluridScreenRect,\n    PluridPlaceOptions,\n    PluridPlaceResult,\n    PluridStack,\n    PluridStackStep,\n    PluridStackFacing,\n    PluridStackOptions,\n    PluridStackPlacement,\n    PluridPinnedAction,\n    PluridPubSubMessagePinned,\n    PluridPubSubMessageStack,\n    PluridPinnedChromeContext,\n    PluridOccluded,\n    PluridOcclusionMode,\n} from '@plurid/plurid-data';\n/**\n * OCCLUDED PLANES FADE (2026-10-31): the state's `occluded`, the kind `occluded`, and the pure pass a\n * host can run on a snapshot.\n */\nexport {\n    occludedFor,\n    OCCLUDED_OPACITY,\n    OCCLUSION_FADE_MS,\n    OCCLUSION_QUIET_MS,\n} from './services/logic/occlusion';\nexport {\n    pagePresentationDefaults,\n    PLURID_ATTRIBUTE_ENTITY,\n    PLURID_ATTRIBUTE_PLANE,\n    PLURID_ATTRIBUTE_CONTROL,\n    PLURID_ATTRIBUTE_DOCKED,\n    PLURID_ATTRIBUTE_ASIDE,\n    PLURID_ATTRIBUTE_APPLICATION,\n    PLURID_ATTRIBUTE_LOOK,\n    PLURID_ATTRIBUTE_PRESENTATION,\n    PLURID_ATTRIBUTE_PAGE,\n    PLURID_ATTRIBUTE_MOTION,\n    PLURID_ATTRIBUTE_NAVIGATING,\n    PLURID_ATTRIBUTE_OVERLAY,\n    PLURID_ATTRIBUTE_RAIL,\n    PLURID_ATTRIBUTE_RAIL_BUTTON,\n    PLURID_ATTRIBUTE_PINNED,\n    PLURID_ATTRIBUTE_COLLAPSED,\n    PLURID_ATTRIBUTE_LIFTED,\n    PLURID_ATTRIBUTE_OCCLUDING,\n    PLURID_ENTITY_PINNED_LAYER,\n    PLURID_ENTITY_PINNED_PLANE,\n} from '@plurid/plurid-data';\nexport type {\n    ChromeMode,\n    ChromePiece,\n    PluridChromeContext,\n    PluridPlaneChromeContext,\n} from './services/chrome';\nexport type {\n    Look,\n    LookBase,\n    LookTokens,\n    LookName,\n    LookScheme,\n} from '@plurid/plurid-themes';\nexport {\n    looks,\n    LOOK_NAMES,\n    LOOK_TOKENS,\n    deriveLook,\n    themeFromLook,\n} from '@plurid/plurid-themes';\nexport type {\n    CameraMotionOptions,\n    CameraCommand,\n} from './services/logic/camera';\n\nexport type {\n    Theme,\n\n    PluridPlane,\n    PluridView,\n    PluridUniverse,\n\n    PluridRouterProperties,\n    PluridRouterPartialProperties,\n\n    PluridRoute,\n    PluridRouteSpace,\n    PluridRouteUniverse,\n    PluridRoutePlane,\n\n    ComponentWithPlurid,\n    PluridPlaneComponentProperty,\n    PluridRouteComponentProperty,\n\n    PluridReactComponent,\n    PluridReactPlane,\n    PluridReactPlaneComponent,\n    PluridReactRouteComponent,\n    PluridReactRoute,\n    PluridReactRoutePlane,\n    PluridRouteMatch,\n    PluridReactRenderSlot,\n    PluridReactSlots,\n\n    PluridPreserve,\n    PluridPreserveTransmission,\n\n    PluridPubSubPublishMessage,\n    PluridPubSubSubscribeMessage,\n\n    PluridApi,\n    PluridInspection,\n    PluridInspectionPlane,\n    PluridInspectorRegistry,\n    PluridStore,\n    PluridStorageAdapter,\n\n    CameraState,\n    CameraDelta,\n    CameraLimits,\n    CameraMotion,\n    Vec2,\n    Vec3,\n\n    PluridConfiguration,\n    PluridPartialConfiguration,\n    FlatPluridConfiguration,\n    RecursivePartial,\n};\n\n/**\n * THE PROPS OF `<PluridApplication>`, by name: a host wrapping the application types its own props\n * with it. (The router's own inputs — `planesRegistrar`, `matchedRoute`, `precomputedState`,\n * `planesProperties` — are in it and marked internal.) Its `render*` slots return a React node\n * (`PluridReactRenderSlot`).\n */\nexport type PluridApplicationProperties = PluridReactApplicationProperties;\n\n\nexport default Plurid;\n// #endregion exports\n\n/** the arrangement fragment: the persistence format's types */\nexport type {\n    ArrangementFragment,\n    FragmentPlane,\n    FragmentLink,\n    MaterializeFragmentOptions,\n    MaterializedFragment,\n};\n"]}