import type { ReactiveController, ReactiveControllerHost } from 'lit';
/**
* Marker class on the inline JSON script a server emits inside a component.
*
* @example
* ```html
*
*
*
* ```
*/
const ROXY_DATA_CLASS = 'roxy-data';
/**
* Serialize a RoxyAPI response for embedding inside an inline `` (common in long interpretation prose) closes the script element early, corrupting the page and creating an HTML-injection vector. This escapes the script-unsafe characters to their `\uXXXX` JSON escapes, which `JSON.parse` restores to the original characters, so the value the component receives is identical to the response you passed.
*
* `<` is the load-bearing escape (it defeats `` and `