embed-page demo - SCRIPT tag, currentScript and rootNode

As html container, embed-page reads and executes content of SCRIPT tag, and since its content is a subject of scope insulation, the rootNode, currentScript and other related "web page" scoped API should be scoped to content of embed-page.

script type="module" meant to be run only once like with will be run within each embed-page container. Within same container those will not be executed multiple times. But for each container the script will be executed separately. Script titled Y is executed and Z would be ignored.

script type="module" does not have document.currentScript set under current standard. Unlike in standard generic page, microapplication assumes minimal reuse of scripts and it is a convenience feature to use module-formatted script as embedding-aware one. I.e. it could serve only element it is embedded into.
The Y and Z titled scripts would behave differently in generic page and within embed-page.

document.currentScript is only(?) way to get reference to current node and traverse up to find the root node. For embed-page content rootNode is a shadow root of EPA container.

API

script type="module" loaded only once per embed-page

0. Demo of browser standard behavior. Running 4 scripts on page level.

via currentScript should be WX : twice without "type". None with type="module" as currentScript is not set in browser page scope.
via document should start with WX?U : twice without "type". Once with type="module" (Y) as module script should be execute only once.

1. embed-page with inline scripts, 1st instance

2. embed-page with inline scripts, 2nd instance

3. embed-page with scripts in current-script-microapp.html

4. unscoped embed-page with inline scripts

Within unscoped embed-page the expected is different than in scoped. Actual values are "KL" and blank respectively. M,N scripts are skipped as those are a type=module and were executed in case 0 above.
Blank value here is due to scripts looking for first occurrence of input class="document-selected" which is defined in case 0 above.

5. unscoped embed-page with scripts in current-script-microapp.html

Within unscoped embed-page the expected is different than in scoped. Expected "ABCD" and blank respectively. Blank value here is due to scripts looking for first occurrence of input class="document-selected" which is defined in case 0 above. Expected ABCD mixed in field of sample #0

6. embed-page with inline script type=module

7. unscoped embed-page with inline script type=module