/** * Svelte action to move an element to a different part of the DOM (as specified by the `targetId` * provided), effectively creating a "portal." * * @param {HTMLElement} node - The element to be moved (provided by Svelte's `use:action` syntax). * @param {string} targetId - The ID of the target element where `node` should be moved. * @returns {{ destroy(): void } | void} - An object with a `destroy` method to remove `node` from the target when unmounted. * * @example * ```svelte *