🎥 Make videos programmatically with React
inline shiki
Jonny Burger6bada57c2875
diff --git a/packages/docs/components/Installation.tsx b/packages/docs/components/Installation.tsxnew file mode 100644index 0000000000..5a646f8587--- /dev/null+++ b/packages/docs/components/Installation.tsx@@ -0,0 +1,38 @@+import React from "react";++import CodeBlock from "@theme/CodeBlock";+import TabItem from "@theme/TabItem";+import Tabs from "@theme/Tabs";++export const Installation: React.FC = () => {+ return (+ <Tabs+ defaultValue="npm"+ values={[+ { label: "npm", value: "npm" },+ { label: "yarn", value: "yarn" },+ { label: "pnpm", value: "pnpm" },+ ]}+ >+ <TabItem value="npm">+ <CodeBlock+ className="shiki github-light"+ language="bash"+ title="hi"+ showLineNumbers+ >+ <div className="code-container">+ <div className="line">{"npm i remotion @remotion/player"}</div>+ </div>+ </CodeBlock>+ </TabItem>++ <TabItem value="pnpm">+ <code>pnpm i remotion @remotion/player</code>+ </TabItem>+ <TabItem value="yarn">+ <code>yarn add remotion @remotion/player</code>+ </TabItem>+ </Tabs>+ );+};diff --git a/packages/docs/docs/player/installation.md b/packages/docs/docs/player/installation.mdindex 220daffda4..7c5ae8f124 100644--- a/packages/docs/docs/player/installation.md+++ b/packages/docs/docs/player/installation.md@@ -8,43 +8,9 @@ crumb: "@remotion/player"import {TableOfContents, PlayerGuide} from '../../components/TableOfContents/player';-import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';-To install the Player, run the following command in a React project:-<Tabs-defaultValue="npm"-values={[-{ label: 'npm', value: 'npm', },-{ label: 'yarn', value: 'yarn', },-{ label: 'pnpm', value: 'pnpm', },-]-}>-<TabItem value="npm">--```bash-npm i remotion @remotion/player-```-- </TabItem>-- <TabItem value="pnpm">--```bash-pnpm i remotion @remotion/player-```-- </TabItem>- <TabItem value="yarn">--```bash-yarn add remotion @remotion/player-```-- </TabItem>--</Tabs>+<Installation />Also update **all the other Remotion packages** to have the same version: `remotion`, `@remotion/cli` and others.diff --git a/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/index.js b/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/index.jsindex 48da75c8ff..87c254f91e 100644--- a/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/index.js+++ b/packages/docs/docusaurus-theme-shiki-twoslash/theme/CodeBlock/index.js@@ -8,6 +8,7 @@ import copy from "copy-text-to-clipboard";import React, { useRef, useState } from "react";const CodeBlock = ({ children, ...props }) => {+ console.log(props, { children });const pre = useRef(null);const [showCopied, setShowCopied] = useState(false);diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex 4ff97a7fda..6d35005f15 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -84,10 +84,17 @@"@types/hls.js": "^0.13.3","@types/node": "18.14.6","@types/react": "18.2.48",+ "@types/unist": "^2.0.0","eslint": "8.42.0","lodash.sortby": "^4.7.0","prettier": "3.1.1","prettier-plugin-organize-imports": "3.2.4",- "url-loader": "^4.1.1"+ "url-loader": "^4.1.1",+ "unist-util-visit": "^2.0.0",+ "@typescript/twoslash": "3.2.1",+ "unified": "^8.4.2",+ "fenceparser": "^2.2.0",+ "shiki-twoslash": "3.1.2",+ "shiki": "0.14.3"}}diff --git a/packages/docs/remark-shiki-twoslash/caching.js b/packages/docs/remark-shiki-twoslash/caching.jsnew file mode 100644index 0000000000..88d1c18bb9--- /dev/null+++ b/packages/docs/remark-shiki-twoslash/caching.js@@ -0,0 +1,71 @@+const { runTwoSlash } = require("shiki-twoslash");++/**+ * Keeps a cache of the JSON responses to a twoslash call in node_modules/.cache/twoslash+ * which should keep CI times down (e.g. the epub vs the handbook etc) - but also during+ * dev time, where it can be super useful.+ */+exports.cachedTwoslashCall = (code, lang, settings) => {+ const isWebWorker =+ typeof self !== "undefined" &&+ // @ts-expect-error+ typeof self.WorkerGlobalScope !== "undefined";+ const isBrowser =+ isWebWorker ||+ (typeof window !== "undefined" &&+ typeof window.document !== "undefined" &&+ typeof fetch !== "undefined");++ if (isBrowser) {+ // Not in Node, run un-cached+ return runTwoSlash(code, lang, settings);+ }++ const shasum = createHash("sha1");+ const codeSha = shasum+ .update(`${code}-${shikiVersion}-${tsVersion}`)+ .digest("hex");++ const getNmCache = () => {+ if (__dirname.includes("node_modules")) {+ return join(+ __dirname.split("node_modules")[0],+ "node_modules",+ ".cache",+ "twoslash",+ );+ }++ return join(__dirname, "..", "..", ".cache", "twoslash");+ };++ const getPnpCache = () => {+ try {+ const pnp = require("pnpapi");+ return join(+ pnp.getPackageInformation(pnp.topLevel).packageLocation,+ "node_modules",+ ".cache",+ "twoslash",+ );+ } catch (error) {+ return getNmCache();+ }+ };++ const cacheRoot = process.versions.pnp ? getPnpCache() : getNmCache();++ const cachePath = join(cacheRoot, `${codeSha}.json`);++ if (existsSync(cachePath)) {+ if (process.env.debug)+ console.log(`Using cached twoslash results from ${cachePath}`);++ return JSON.parse(readFileSync(cachePath, "utf8"));+ }++ const results = runTwoSlash(code, lang, settings);+ if (!existsSync(cacheRoot)) mkdirSync(cacheRoot, { recursive: true });+ writeFileSync(cachePath, JSON.stringify(results), "utf8");+ return results;+};diff --git a/packages/docs/remark-shiki-twoslash/exceptionMessageDOM.js b/packages/docs/remark-shiki-twoslash/exceptionMessageDOM.jsnew file mode 100644index 0000000000..87f5c3def5--- /dev/null+++ b/packages/docs/remark-shiki-twoslash/exceptionMessageDOM.js@@ -0,0 +1,148 @@+const { TwoslashError } = require("@typescript/twoslash");++function escapeHtml(html) {+ return html.replace(/</g, "<").replace(/>/g, ">");+}++exports.setupNodeForTwoslashException = (code, node, error) => {+ const css = `<style>+@import url('http://fonts.cdnfonts.com/css/caslon-os');++.twoslash-fixed-error-note {+ position: fixed;+ top: 20px;+ right: 20px;+ display: flex;+ align-items: center;+ padding: .25rem .75rem;+ color: black;+ background-color: #FCF3D9;+ background-clip: padding-box;+ border-bottom: 1px solid rgba(0,0,0,.05);+ border-radius: .25rem;+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";+ }++ #__docusaurus .twoslash-fixed-error-note {+ top: 80px;+ }++ .twoslash-fixed-error-note:hover {+ border-bottom: 1px solid rgba(226, 61, 30, 0.8);+ }++ .twoslash-error-color {+ background-color: #E23D1E;+ width: 18px;+ height: 18px;+ border-radius: 9px;+ margin-right: 10px;+ color: black;+ }++.twoslash-exception-message {+ font-family: 'Caslon OS', sans-serif;+ background-color: #FCF3D9;+ font-size: 1.1rem;+ padding: 2rem;+ border-left: 2px solid #E23D1E;+}++.twoslash-exception-message p {+ margin-top: 1rem;+ margin-bottom: 0.6rem;+}++.twoslash-exception-message h3 {+ margin-top: 0.6rem;+ margin-bottom: 0.3rem;+ font-size: 1.8rem;+}++.twoslash-exception-message code {+ white-space: pre-wrap;+ font-family: "JetBrains Mono", Menlo, Monaco, Consolas, Courier New, monospace;+ margin-bottom: 20px;+ background-color: #FCF3D9;+ color: black;+ border: none;+ padding-left: 0;+ }++ .twoslash-exception-message > code {+ display: block;+ margin-bottom: 1.5rem;+ margin-top: 3rem;+ }++.twoslash-exception-code {+ border-left: 2px solid #E5A604;+ padding-left: 20px;+ background-color: #FCF3D9;+ color: black;+}+</style>`;++ const bodyFromTwoslashError = (err) => {+ return `+<h3>${escapeHtml(err.title)}</h3>+<p>${escapeHtml(err.description).replace(/(?:\r\n|\r|\n)/g, "<br>")}</p>+<code>${escapeHtml(err.recommendation).replace(+ /(?:\r\n|\r|\n)/g,+ "<br>",+ )}</code>+`;+ };++ const bodyFromError = (err) => {+ return `<pre><code>${err.message.split("## Code")[0]}</code></pre>`;+ };++ const isWebWorker =+ typeof self !== "undefined" &&+ // @ts-expect-error+ typeof self.WorkerGlobalScope !== "undefined";+ const isBrowser =+ isWebWorker ||+ (typeof window !== "undefined" &&+ typeof window.document !== "undefined" &&+ typeof fetch !== "undefined");++ // @ts-expect-error+ const isJest = typeof jest !== "undefined";++ const eLog = !isBrowser && !isJest ? console.error : () => {};++ let body = `<pre><code>${error}</code></pre>`;+ if (typeof error !== "object") {+ body = String(error);+ eLog(`### Unexpected error:`);+ eLog(error);+ } else if (error instanceof TwoslashError) {+ body = bodyFromTwoslashError(error);+ eLog(`### Twoslash error: ${error.title}`);+ eLog(error.description);+ eLog(error.recommendation);+ eLog("\n### Code Sample");+ eLog(code);+ } else if (error instanceof Error) {+ body = bodyFromError(error);+ eLog(`### Unexpected error:`);+ eLog(error);+ }++ const codeSample = `<p>Raising Code:</p><pre class='twoslash-exception-code'><code>${escapeHtml(+ code,+ )}</code></pre>`;++ const html = `+ <a href='#twoslash-error'><div class='twoslash-fixed-error-note'><span class='twoslash-error-color'></span>Twoslash failure</div></a>+ <div class='twoslash-exception-message'>${body}${codeSample}</div>`;++ node.type = "html";+ // @ts-expect-error+ node.value = "<div id='twoslash-error'>" + css + html + "</div>";++ // @ts-expect-error+ node.children = [];+};diff --git a/packages/docs/remark-shiki-twoslash/includes.js b/packages/docs/remark-shiki-twoslash/includes.jsnew file mode 100644index 0000000000..7163899542--- /dev/null+++ b/packages/docs/remark-shiki-twoslash/includes.js@@ -0,0 +1,53 @@+exports.addIncludes = (map, name, code) => {+ const lines = [];++ code.split("\n").forEach((l) => {+ const trimmed = l.trim();++ if (trimmed.startsWith("// - ")) {+ const key = trimmed.split("// - ")[1].split(" ")[0];+ map.set(name + "-" + key, lines.join("\n"));+ } else {+ lines.push(l);+ }+ });+ map.set(name, lines.join("\n"));+};++exports.replaceIncludesInCode = (_map, code) => {+ const includes = /\/\/ @include: (.*)$/gm;++ // Basically run a regex over the code replacing any // @include: thing with+ // 'thing' from the map++ // const toReplace: [index:number, length: number, str: string][] = []+ const toReplace = [];++ let match;+ while ((match = includes.exec(code)) !== null) {+ // This is necessary to avoid infinite loops with zero-width matches+ if (match.index === includes.lastIndex) {+ includes.lastIndex++;+ }++ const key = match[1];+ const replaceWith = _map.get(key);++ if (!replaceWith) {+ const msg = `Could not find an include with the key: '${key}'.\nThere is: ${Array.from(+ _map.keys(),+ )}.`;+ throw new Error(msg);+ }++ toReplace.push([match.index, match[0].length, replaceWith]);+ }++ let newCode = code.toString();+ // Go backwards through the found changes so that we can retain index position+ toReplace.reverse().forEach((r) => {+ newCode =+ newCode.substring(0, r[0]) + r[2] + newCode.substring(r[0] + r[1]);+ });+ return newCode;+};diff --git a/packages/docs/remark-shiki-twoslash/index.js b/packages/docs/remark-shiki-twoslash/index.jsnew file mode 100644index 0000000000..0ac12a0170--- /dev/null+++ b/packages/docs/remark-shiki-twoslash/index.js@@ -0,0 +1,258 @@+const { TwoslashError } = require("@typescript/twoslash");++const { lex, parse } = require("fenceparser");+const { getHighlighter } = require("shiki");+const { renderCodeToHTML } = require("shiki-twoslash");+const visit = require("unist-util-visit");++const { cachedTwoslashCall } = require("./caching");+const { setupNodeForTwoslashException } = require("./exceptionMessageDOM");+const { addIncludes, replaceIncludesInCode } = require("./includes");++// A set of includes which can be pulled via a set ID+const includes = new Map();++function getHTML(code, fence, highlighters, twoslash, twoslashSettings) {+ // Shiki doesn't respect json5 as an input, so switch it+ // to json, which can handle comments in the syntax highlight+ const replacer = {+ json5: "json",+ };++ if (replacer[fence.lang]) fence.lang = replacer[fence.lang];++ let results;+ // Support 'twoslash' includes+ if (fence.lang === "twoslash") {+ if (!fence.meta.include || typeof fence.meta.include !== "string") {+ throw new Error(+ "A twoslash code block needs a pragma like 'twoslash include [name]'",+ );+ }++ addIncludes(includes, fence.meta.include, code);+ results = twoslashSettings.wrapFragments+ ? `<div class="shiki-twoslash-fragment"></div>`+ : "";+ } else {+ // All good, get each highlighter and render the shiki output for it+ const output = highlighters.map((highlighter) => {+ // @ts-expect-error+ const themeName = highlighter.customName+ .split("/")+ .pop()+ .replace(".json", "");+ return renderCodeToHTML(+ code,+ fence.lang,+ fence.meta,+ { themeName, ...twoslashSettings },+ // @ts-expect-error+ highlighter,+ twoslash,+ );+ });+ results = output.join("\n");+ if (highlighters.length > 1 && twoslashSettings.wrapFragments) {+ results = `<div class="shiki-twoslash-fragment">${results}</div>`;+ }+ }++ return results;+}++/**+ * Runs twoslash across an AST node, switching out the text content, and lang+ * and adding a `twoslash` property to the node.+ */+exports.runTwoSlashOnNode = (code, { lang, meta }, settings = {}) => {+ // Offer a way to do high-perf iterations, this is less useful+ // given that we cache the results of twoslash in the file-system+ const shouldDisableTwoslash =+ typeof process !== "undefined" &&+ process.env &&+ Boolean(process.env.TWOSLASH_DISABLE);+ if (shouldDisableTwoslash) return undefined;++ // Only run twoslash when the meta has the attribute twoslash+ if (meta.twoslash) {+ const importedCode = replaceIncludesInCode(includes, code);+ return cachedTwoslashCall(importedCode, lang, settings);+ }++ return undefined;+};++// To make sure we only have one highlighter per theme in a process+const highlighterCache = new Map();++/** Sets up the highlighters, and cache's for recalls */+exports.highlightersFromSettings = (settings) => {+ // console.log("i should only log once per theme")+ // ^ uncomment this to debug if required+ const themes =+ settings.themes || (settings.theme ? [settings.theme] : ["light-plus"]);++ return Promise.all(+ themes.map(async (theme) => {+ // You can put a string, a path, or the JSON theme obj+ const themeName = theme.name || theme;+ // @ts-expect-error+ const highlighter = await getHighlighter({+ ...settings,+ theme,+ themes: undefined,+ });++ // @ts-expect-error - https://github.com/shikijs/shiki/pull/162 will fix this+ highlighter.customName = themeName;+ return highlighter;+ }),+ );+};++const parsingNewFile = () => includes.clear();++const parseFence = (fence) => {+ const [lang, ...tokens] = lex(fence);++ // if the language is twoslash and include key is found+ // insert an `=` after include to make it `include=[name]`+ // which yields better meta+ if (lang === "twoslash") {+ // Search for `include` in tokens+ const index = tokens.indexOf("include");+ if (index !== -1) {+ tokens.splice(index + 1, 0, "=");+ }+ }++ const meta = parse(tokens) ?? {};++ return {+ lang: (lang || "").toString(),+ meta,+ };+};++// --- The Remark API ---++/**+ * Synchronous outer function, async inner function, which is how the remark+ * async API works.+ */+function remarkTwoslash(settings = {}) {+ if (!highlighterCache.has(settings)) {+ highlighterCache.set(settings, highlightersFromSettings(settings));+ }++ const transform = async (markdownAST) => {+ const highlighters = await highlighterCache.get(settings);+ parsingNewFile();+ // eslint-disable-next-line @typescript-eslint/no-use-before-define+ visit(markdownAST, "code", remarkVisitor(highlighters, settings));+ };++ return transform;+}++/**+ * The function doing the work of transforming any codeblock samples in a remark AST.+ */+exports.remarkVisitor =+ (highlighters, twoslashSettings = {}) =>+ (node) => {+ const code = node.value;+ let fence;++ try {+ fence = parseFence([node.lang, node.meta].filter(Boolean).join(" "));+ } catch (error) {+ const twoslashError = new TwoslashError(+ "Codefence error",+ "Could not parse the codefence for this code sample",+ "It's usually an unclosed string",+ code,+ );+ return setupNodeForTwoslashException(code, node, twoslashError);+ }++ // Do nothing if the node has an attribute to ignore+ if (+ Object.keys(fence.meta).filter((key) =>+ (twoslashSettings.ignoreCodeblocksWithCodefenceMeta || []).includes(+ key,+ ),+ ).length > 0+ ) {+ return;+ }++ let twoslash;+ try {+ // By allowing node.twoslash to already exist you can set it up yourself in a browser+ twoslash =+ node.twoslash || runTwoSlashOnNode(code, fence, twoslashSettings);+ } catch (error) {+ const shouldAlwaysRaise =+ process && process.env && Boolean(process.env.CI);+ // @ts-expect-error+ const yeahButNotInTests = typeof jest === "undefined";++ if (+ (shouldAlwaysRaise && yeahButNotInTests) ||+ twoslashSettings.alwayRaiseForTwoslashExceptions+ ) {+ throw error;+ } else {+ return setupNodeForTwoslashException(code, node, error);+ }+ }++ if (twoslash) {+ node.value = twoslash.code;+ node.lang = twoslash.extension;+ node.twoslash = twoslash;+ }++ const shikiHTML = getHTML(+ node.value,+ fence,+ highlighters,+ twoslash,+ twoslashSettings,+ );+ node.type = "html";+ node.value = shikiHTML;+ node.children = [];+ };++module.exports = remarkTwoslash;++// --- The Markdown-it API ---++/** Only the inner function exposed as a synchronous API for markdown-it */++exports.setupForFile = async (settings = {}) => {+ parsingNewFile();++ if (!highlighterCache.has(settings)) {+ highlighterCache.set(settings, highlightersFromSettings(settings));+ }++ const highlighters = await highlighterCache.get(settings);+ return { settings, highlighters };+};++exports.transformAttributesToHTML = (+ code,+ fenceString,+ highlighters,+ settings,+) => {+ const fence = parseFence(fenceString);++ const twoslash = runTwoSlashOnNode(code, fence, settings);+ const newCode = (twoslash && twoslash.code) || code;+ return getHTML(newCode, fence, highlighters, twoslash, settings);+};diff --git a/packages/docs/shiki.js b/packages/docs/shiki.jsindex ad02d9d5c3..3d9060ea8c 100644--- a/packages/docs/shiki.js+++ b/packages/docs/shiki.js@@ -1,5 +1,5 @@const path = require("path");-const { default: twoslash } = require("remark-shiki-twoslash");+const twoslash = require("./remark-shiki-twoslash/index.js");/*** @param {import("@docusaurus/types").DocusaurusContext} contextdiff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex c84d304951..13e2098bf8 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -698,17 +698,7 @@ module.exports = {{type: "category",label: "Building apps",- items: [- {- type: "link",- href: "/docs/player",- label: "Player",- },- "brownfield",- "video-uploads",- "presigned-urls",- "font-picker",- ],+ items: ["brownfield", "video-uploads", "presigned-urls", "font-picker"],},{type: "category",diff --git a/packages/docs/src/theme/MDXComponents.js b/packages/docs/src/theme/MDXComponents.jsindex abff9f7756..a74ab7c1b4 100644--- a/packages/docs/src/theme/MDXComponents.js+++ b/packages/docs/src/theme/MDXComponents.js@@ -3,6 +3,7 @@ import MDXComponents from "@theme-original/MDXComponents";import { Demo } from "../../components/demos";import { ExperimentalBadge } from "../../components/Experimental";import { InlineStep, Step } from "../../components/InlineStep";+import { Installation } from "../../components/Installation";import { YouTube } from "../../components/YouTube";import { AvailableFrom } from "../components/AvailableFrom";import { Credits } from "../components/Credits";@@ -18,4 +19,5 @@ export default {Options,Credits,YouTube,+ Installation,};diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 34cd9ff0aa..c441b16798 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -747,9 +747,18 @@ importers:'@types/react':specifier: 18.2.48version: 18.2.48+ '@types/unist':+ specifier: ^2.0.0+ version: 2.0.6+ '@typescript/twoslash':+ specifier: 3.2.1+ version: 3.2.1eslint:specifier: 8.42.0version: 8.42.0+ fenceparser:+ specifier: ^2.2.0+ version: 2.2.0lodash.sortby:specifier: ^4.7.0version: 4.7.0@@ -759,6 +768,18 @@ importers:prettier-plugin-organize-imports:specifier: 3.2.4version: 3.2.4([email protected])([email protected])+ shiki:+ specifier: 0.14.3+ version: 0.14.3+ shiki-twoslash:+ specifier: 3.1.2+ version: 3.1.2([email protected])+ unified:+ specifier: ^8.4.2+ version: 8.4.2+ unist-util-visit:+ specifier: ^2.0.0+ version: 2.0.3url-loader:specifier: ^4.1.1version: 4.1.1([email protected])([email protected])@@ -10274,7 +10295,6 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==}- dev: false/@types/[email protected]:resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==}@@ -10796,7 +10816,16 @@ packages:lz-string: 1.4.4transitivePeerDependencies:- supports-color- dev: false++ /@typescript/[email protected]:+ resolution: {integrity: sha512-tS4gLwOe1WCDspqBXhQCb2ESUqzEd1tOkmKpiZ1O+W1x+9l+9njETuXFkLErtH9is/uD1GSvClDjk/tEOJktjQ==}+ dependencies:+ '@typescript/vfs': 1.4.0+ debug: 4.3.4([email protected])+ lz-string: 1.4.4+ transitivePeerDependencies:+ - supports-color+ dev: true/@typescript/[email protected]:resolution: {integrity: sha512-RbyJiaAGQPIcAGWFa3jAXSuAexU4BFiDRF1g3hy7LmRqfNpYlTQWGXjcrOaVZjJ8YkkpuwG0FcsYvtWQpd9igQ==}@@ -10804,7 +10833,6 @@ packages:debug: 4.3.4([email protected])transitivePeerDependencies:- supports-color- dev: false/@typescript/[email protected]:resolution: {integrity: sha512-pI8Saqjupf9MfLw7w2+og+fmb0fZS0J6vsKXXrp4/PDXEFvntgzXmChCXC/KefZZS0YGS6AT8e0hGAJcTsdJlg==}@@ -10812,7 +10840,14 @@ packages:debug: 4.3.4([email protected])transitivePeerDependencies:- supports-color- dev: false++ /@typescript/[email protected]:+ resolution: {integrity: sha512-Pood7yv5YWMIX+yCHo176OnF8WUlKGImFG7XlsuH14Zb1YN5+dYD3uUtS7lqZtsH7tAveNUi2NzdpQCN0yRbaw==}+ dependencies:+ debug: 4.3.4([email protected])+ transitivePeerDependencies:+ - supports-color+ dev: true/@use-gesture/[email protected]:resolution: {integrity: sha512-V4XV7hn9GAD2MYu8yBBVi5iuWBsAMfjPRMsEVzoTNGYH72tf0kFP+OKqGKc8YJFQIJx6yj+AOqxmEHOmx2/MEA==}@@ -11204,6 +11239,10 @@ packages:engines: {node: '>=12'}dev: false+ resolution: {integrity: sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==}+ dev: true+resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==}engines: {node: '>=4'}@@ -11616,7 +11655,6 @@ packages:resolution: {integrity: sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==}- dev: falseresolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}@@ -14232,7 +14270,6 @@ packages:resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}- dev: falseresolution: {integrity: sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==}@@ -14371,7 +14408,10 @@ packages:resolution: {integrity: sha512-VdkTsK7GWLT0VWMK5S5WTAPn61wJ98WPFwJiRHumhg4ESNUO/tnkU8bzzzc62o6Uk1SVhuZFLnakmDA4SGV7wA==}engines: {node: '>=12'}- dev: false++ resolution: {integrity: sha512-fdXOPciCALTWvooKxyRUmYERiw1L1mzqVsfpk5F9kGr3NoT/Sdwew4BqGctY6xZpUXiZ7dXXPb27Om2nmUmHMg==}+ dev: trueresolution: {integrity: sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==}@@ -15717,7 +15757,6 @@ packages:resolution: {integrity: sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==}engines: {node: '>=4'}- dev: falseresolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}@@ -15896,7 +15935,6 @@ packages:resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==}engines: {node: '>=8'}- dev: falseresolution: {integrity: sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==}@@ -20595,15 +20633,13 @@ packages:typescript: 4.9.5transitivePeerDependencies:- supports-color- dev: falseresolution: {integrity: sha512-VsY7QJVzU51j5o1+DguUd+6vmCmZ5v/6gYu4vyYAhzjuNQU6P/vmSy4uQaOhvje031qQMiW0d2BwgMH52vqMng==}dependencies:jsonc-parser: 3.2.0- vscode-oniguruma: 1.6.2+ vscode-oniguruma: 1.7.0vscode-textmate: 5.2.0- dev: falseresolution: {integrity: sha512-EugY9VASFuDqOexOgXR18ZV+TbFrQHeCpEYaXamO+SZlsnT/2LxuLBX25GGtIrwaEVFXUAbUQ601SWE2rMwWHA==}@@ -20613,6 +20649,15 @@ packages:vscode-textmate: 6.0.0dev: false+ resolution: {integrity: sha512-U3S/a+b0KS+UkTyMjoNojvTgrBHjgp7L6ovhFVZsXmBGnVdQ4K4U9oK0z63w538S91ATngv1vXigHCSWOwnr+g==}+ dependencies:+ ansi-sequence-parser: 1.1.1+ jsonc-parser: 3.2.0+ vscode-oniguruma: 1.7.0+ vscode-textmate: 8.0.0+ dev: true+resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}dependencies:@@ -21635,7 +21680,6 @@ packages:resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==}- dev: falseresolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==}@@ -21982,6 +22026,17 @@ packages:vfile: 5.3.7dev: false+ resolution: {integrity: sha512-JCrmN13jI4+h9UAyKEoGcDZV+i1E7BLFuG7OsaDvTXI5P0qhHX+vZO/kOhz9jn8HGENDKbwSeB0nVOg4gVStGA==}+ dependencies:+ '@types/unist': 2.0.6+ bail: 1.0.5+ extend: 3.0.2+ is-plain-obj: 2.1.0+ trough: 1.0.5+ vfile: 4.2.1+ dev: true+resolution: {integrity: sha512-vx2Z0vY+a3YoTj8+pttM3tiJHCwY5UFbYdiWrwBEbHmK8pvsPj2rtAX2BFfgXen8T39CJWblWRDT4L5WGXtDdg==}dependencies:@@ -22037,7 +22092,6 @@ packages:resolution: {integrity: sha512-ZOQSsnce92GrxSqlnEEseX0gi7GH9zTJZ0p9dtu87WRb/37mMPO2Ilx1s/t9vBHrFhbgweUwb+t7cIn5dxPhZg==}- dev: falseresolution: {integrity: sha512-Glt17jWwZeyqrFqOK0pF1Ded5U3yzJnFr8CG1GMjCWTp9zDo2p+cmD6pWbZU8AgM5WU3IzRv6+rBwhzsGh6hBQ==}@@ -22089,7 +22143,6 @@ packages:resolution: {integrity: sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==}dependencies:'@types/unist': 2.0.6- dev: falseresolution: {integrity: sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==}@@ -22108,7 +22161,6 @@ packages:dependencies:'@types/unist': 2.0.6unist-util-is: 4.1.0- dev: falseresolution: {integrity: sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==}@@ -22123,7 +22175,6 @@ packages:'@types/unist': 2.0.6unist-util-is: 4.1.0unist-util-visit-parents: 3.1.1- dev: falseresolution: {integrity: sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg==}@@ -22390,7 +22441,6 @@ packages:dependencies:'@types/unist': 2.0.6unist-util-stringify-position: 2.0.3- dev: falseresolution: {integrity: sha512-fa0Z6P8HUrQN4BZaX05SIVXic+7kE3b05PWAtPuYP9QLHsLKYR7/AlLW3NtOrpXRLeawpDLMsVkmk5DG0NXgWw==}@@ -22406,7 +22456,6 @@ packages:is-buffer: 2.0.5unist-util-stringify-position: 2.0.3vfile-message: 2.0.4- dev: falseresolution: {integrity: sha512-r7qlzkgErKjobAmyNIkkSpizsFPYiUPuJb5pNW1RB4JcYVZhs4lIbVqk8XPk033CV/1z8ss5pkax8SuhGpcG8g==}@@ -22734,14 +22783,20 @@ packages:resolution: {integrity: sha512-KH8+KKov5eS/9WhofZR8M8dMHWN2gTxjMsG4jd04YhpbPR91fUj7rYQ2/XjeHCJWbg7X++ApRIU9NUwM2vTvLA==}dev: false+ resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==}+resolution: {integrity: sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==}- dev: falseresolution: {integrity: sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==}dev: false+ resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==}+ dev: true+resolution: {integrity: sha512-8TEXQxlldWAuIODdukIb+TR5s+9Ds40eSJrw+1iDDA9IFORPjMELarNQE3myz5XIkWWpdprmJjm1/SxMlWOC8A==}dev: false