"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PreloadedDataScript = PreloadedDataScript; exports.Html = Html; /** * Copyright © 2023 650 Industries. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const html_1 = require("expo-router/html"); const react_1 = __importDefault(require("react")); const html_2 = require("../utils/html"); /** * Injects loader data into the HTML as a script tag for client-side hydration. * The data is serialized as JSON and made available on the `globalThis.__EXPO_ROUTER_LOADER_DATA__` global. */ function PreloadedDataScript({ data }) { const safeJson = (0, html_2.escapeUnsafeCharacters)(JSON.stringify(data)); return (