mastra 0.2.6-alpha.0 → 0.2.6-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/index.js +1 -1
- package/dist/{chunk-IMSTTFWI.js → chunk-5XPLLU3H.js} +7 -7
- package/dist/{chunk-DHTLEROT.js → chunk-SLGHDOYI.js} +5 -5
- package/dist/commands/create/create.js +1 -1
- package/dist/index.js +9 -10
- package/dist/templates/dev.entry.js +2 -2
- package/package.json +3 -3
- package/src/playground/dist/assets/{index-BDBEhVq2.js → index-BohqOATi.js} +2 -2
- package/src/playground/dist/assets/{index-C2wZ4JLF.js → index-DaEb9DzI.js} +1 -1
- package/src/playground/dist/index.html +1 -1
package/dist/analytics/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PosthogAnalytics } from '../chunk-
|
|
1
|
+
export { PosthogAnalytics } from '../chunk-SLGHDOYI.js';
|
|
@@ -2,15 +2,15 @@ import * as p from '@clack/prompts';
|
|
|
2
2
|
import color2 from 'picocolors';
|
|
3
3
|
import child_process from 'node:child_process';
|
|
4
4
|
import util from 'node:util';
|
|
5
|
+
import fs4 from 'fs/promises';
|
|
5
6
|
import path, { dirname } from 'path';
|
|
7
|
+
import fsExtra3 from 'fs-extra/esm';
|
|
6
8
|
import prettier from 'prettier';
|
|
7
9
|
import yoctoSpinner from 'yocto-spinner';
|
|
8
|
-
import fsExtra3 from 'fs-extra/esm';
|
|
9
|
-
import fs4 from 'fs/promises';
|
|
10
|
-
import { execa } from 'execa';
|
|
11
10
|
import * as fs3 from 'fs';
|
|
12
11
|
import fs3__default from 'fs';
|
|
13
12
|
import { fileURLToPath } from 'url';
|
|
13
|
+
import { execa } from 'execa';
|
|
14
14
|
import { createLogger } from '@mastra/core/logger';
|
|
15
15
|
|
|
16
16
|
// src/commands/create/create.ts
|
|
@@ -304,7 +304,7 @@ async function writeAgentSample(llmProvider, destPath, addExampleTool) {
|
|
|
304
304
|
${addExampleTool ? "Use the weatherTool to fetch current weather data." : ""}
|
|
305
305
|
`;
|
|
306
306
|
const content = `
|
|
307
|
-
${providerImport}
|
|
307
|
+
${providerImport}
|
|
308
308
|
import { Agent } from '@mastra/core/agent';
|
|
309
309
|
${addExampleTool ? `import { weatherTool } from '../tools';` : ""}
|
|
310
310
|
|
|
@@ -386,7 +386,7 @@ const fetchWeather = new Step({
|
|
|
386
386
|
city: z.string().describe('The city to get the weather for'),
|
|
387
387
|
}),
|
|
388
388
|
execute: async ({ context }) => {
|
|
389
|
-
const triggerData = context?.
|
|
389
|
+
const triggerData = context?.getStepResult<{ city: string }>('trigger');
|
|
390
390
|
|
|
391
391
|
if (!triggerData) {
|
|
392
392
|
throw new Error('Trigger data not found');
|
|
@@ -445,7 +445,7 @@ const planActivities = new Step({
|
|
|
445
445
|
description: 'Suggests activities based on weather conditions',
|
|
446
446
|
inputSchema: forecastSchema,
|
|
447
447
|
execute: async ({ context, mastra }) => {
|
|
448
|
-
const forecast = context?.
|
|
448
|
+
const forecast = context?.getStepResult<z.infer<typeof forecastSchema>>('fetch-weather');
|
|
449
449
|
|
|
450
450
|
if (!forecast || forecast.length === 0) {
|
|
451
451
|
throw new Error('Forecast data not found');
|
|
@@ -719,7 +719,7 @@ var checkPkgJson = async () => {
|
|
|
719
719
|
try {
|
|
720
720
|
await fsExtra3.readJSON(pkgJsonPath);
|
|
721
721
|
isPkgJsonPresent = true;
|
|
722
|
-
} catch
|
|
722
|
+
} catch {
|
|
723
723
|
isPkgJsonPresent = false;
|
|
724
724
|
}
|
|
725
725
|
if (isPkgJsonPresent) {
|
|
@@ -2,8 +2,8 @@ import { randomUUID } from 'crypto';
|
|
|
2
2
|
import { existsSync, readFileSync, writeFileSync } from 'fs';
|
|
3
3
|
import os from 'os';
|
|
4
4
|
import path from 'path';
|
|
5
|
-
import { PostHog } from 'posthog-node';
|
|
6
5
|
import { fileURLToPath } from 'url';
|
|
6
|
+
import { PostHog } from 'posthog-node';
|
|
7
7
|
|
|
8
8
|
// src/analytics/index.ts
|
|
9
9
|
var __filename = fileURLToPath(import.meta.url);
|
|
@@ -25,7 +25,7 @@ var PosthogAnalytics = class {
|
|
|
25
25
|
const { distinctId, sessionId } = JSON.parse(readFileSync(cliConfigPath, "utf-8"));
|
|
26
26
|
this.distinctId = distinctId;
|
|
27
27
|
this.sessionId = sessionId;
|
|
28
|
-
} catch
|
|
28
|
+
} catch {
|
|
29
29
|
this.sessionId = randomUUID();
|
|
30
30
|
this.distinctId = this.getDistinctId();
|
|
31
31
|
}
|
|
@@ -48,7 +48,7 @@ var PosthogAnalytics = class {
|
|
|
48
48
|
writeCliConfig({ distinctId, sessionId }) {
|
|
49
49
|
try {
|
|
50
50
|
writeFileSync(path.join(__dirname, "mastra-cli.json"), JSON.stringify({ distinctId, sessionId }));
|
|
51
|
-
} catch
|
|
51
|
+
} catch {
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
initializePostHog(apiKey, host) {
|
|
@@ -122,7 +122,7 @@ var PosthogAnalytics = class {
|
|
|
122
122
|
...commandData
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
} catch
|
|
125
|
+
} catch {
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
// Helper method to wrap command execution with timing
|
|
@@ -163,7 +163,7 @@ var PosthogAnalytics = class {
|
|
|
163
163
|
}
|
|
164
164
|
try {
|
|
165
165
|
await this.client.shutdown();
|
|
166
|
-
} catch
|
|
166
|
+
} catch {
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-5XPLLU3H.js';
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
import { PosthogAnalytics } from './chunk-
|
|
3
|
-
export { PosthogAnalytics } from './chunk-
|
|
4
|
-
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService as FileService$1 } from './chunk-
|
|
5
|
-
export { create } from './chunk-
|
|
2
|
+
import { PosthogAnalytics } from './chunk-SLGHDOYI.js';
|
|
3
|
+
export { PosthogAnalytics } from './chunk-SLGHDOYI.js';
|
|
4
|
+
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService as FileService$1 } from './chunk-5XPLLU3H.js';
|
|
5
|
+
export { create } from './chunk-5XPLLU3H.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
|
-
import 'picocolors';
|
|
8
7
|
import { join as join$1, dirname } from 'node:path';
|
|
9
8
|
import { getWatcherInputOptions, writeTelemetryConfig, createWatcher, FileService as FileService$2 } from '@mastra/deployer/build';
|
|
10
9
|
import { Bundler } from '@mastra/deployer/bundler';
|
|
11
10
|
import * as fsExtra from 'fs-extra';
|
|
12
11
|
import { readFileSync } from 'node:fs';
|
|
13
12
|
import { fileURLToPath } from 'node:url';
|
|
14
|
-
import { FileService, getDeployer } from '@mastra/deployer';
|
|
15
13
|
import { join } from 'path';
|
|
14
|
+
import { FileService, getDeployer } from '@mastra/deployer';
|
|
16
15
|
import { execa } from 'execa';
|
|
17
16
|
|
|
18
17
|
var BuildBundler = class extends Bundler {
|
|
@@ -103,7 +102,7 @@ var DevBundler = class extends Bundler {
|
|
|
103
102
|
const fileService = new FileService();
|
|
104
103
|
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
105
104
|
return Promise.resolve([envFile]);
|
|
106
|
-
} catch
|
|
105
|
+
} catch {
|
|
107
106
|
}
|
|
108
107
|
return Promise.resolve([]);
|
|
109
108
|
}
|
|
@@ -206,7 +205,7 @@ var startServer = async (dotMastraPath, port, env) => {
|
|
|
206
205
|
"Content-Type": "application/json"
|
|
207
206
|
}
|
|
208
207
|
});
|
|
209
|
-
} catch
|
|
208
|
+
} catch {
|
|
210
209
|
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
211
210
|
try {
|
|
212
211
|
await fetch(`http://localhost:${port}/__refresh`, {
|
|
@@ -215,7 +214,7 @@ var startServer = async (dotMastraPath, port, env) => {
|
|
|
215
214
|
"Content-Type": "application/json"
|
|
216
215
|
}
|
|
217
216
|
});
|
|
218
|
-
} catch
|
|
217
|
+
} catch {
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
220
|
if (currentServerProcess.exitCode !== null) {
|
|
@@ -286,7 +285,7 @@ program.version(`${version}`, "-v, --version").description(`Mastra CLI ${version
|
|
|
286
285
|
command: "version"
|
|
287
286
|
});
|
|
288
287
|
console.log(`Mastra CLI: ${version}`);
|
|
289
|
-
} catch
|
|
288
|
+
} catch {
|
|
290
289
|
}
|
|
291
290
|
});
|
|
292
291
|
program.command("create").description("Create a new Mastra project").option("--default", "Quick start with defaults(src, OpenAI, no examples)").option("-c, --components <components>", "Comma-separated list of components (agents, tools, workflows)").option("-l, --llm <model-provider>", "Default model provider (openai, anthropic, or groq))").option("-k, --llm-api-key <api-key>", "API key for the model provider").option("-e, --example", "Include example code").action(async (args) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
// @ts-ignore
|
|
3
|
-
import { mastra } from '#mastra';
|
|
4
|
-
import { createNodeServer } from '#server';
|
|
5
3
|
import { evaluate } from '@mastra/core/eval';
|
|
6
4
|
import { AvailableHooks, registerHook } from '@mastra/core/hooks';
|
|
7
5
|
import { TABLE_EVALS } from '@mastra/core/storage';
|
|
6
|
+
import { mastra } from '#mastra';
|
|
7
|
+
import { createNodeServer } from '#server';
|
|
8
8
|
|
|
9
9
|
// init storage
|
|
10
10
|
if (mastra.storage) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.2.6-alpha.
|
|
3
|
+
"version": "0.2.6-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"yocto-spinner": "^0.1.1",
|
|
56
56
|
"zod": "^3.24.1",
|
|
57
57
|
"zod-to-json-schema": "^3.24.1",
|
|
58
|
-
"@mastra/
|
|
59
|
-
"@mastra/
|
|
58
|
+
"@mastra/deployer": "^0.1.5-alpha.3",
|
|
59
|
+
"@mastra/core": "^0.4.2-alpha.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@microsoft/api-extractor": "^7.49.2",
|
|
@@ -283,9 +283,9 @@ Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}
|
|
|
283
283
|
`))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let c=n.containerPhrasing(t,{before:"# ",after:`
|
|
284
284
|
`,...s.current()});return/^[\t ]/.test(c)&&(c=ip(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),a(),c}t$.peek=Dce;function t$(t){return t.value||""}function Dce(){return"<"}n$.peek=jce;function n$(t,e,n,r){const i=pA(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(t.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":")",...l.current()}))),a(),t.title&&(a=n.enter(`title${s}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),o(),c}function jce(){return"!"}r$.peek=Ice;function r$(t,e,n,r){const i=t.referenceType,s=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(t.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return o(),n.stack=u,s(),i==="full"||!c||c!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Ice(){return"!"}i$.peek=Lce;function i$(t,e,n){let r=t.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],a=n.compilePattern(o);let l;if(o.atBreak)for(;l=a.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function Lce(){return"`"}function s$(t,e){const n=sA(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}o$.peek=Fce;function o$(t,e,n,r){const i=pA(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,l;if(s$(t,n)){const u=n.stack;n.stack=[],a=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(t,{before:d,after:">",...o.current()})),d+=o.move(">"),a(),n.stack=u,d}a=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(t,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(t.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(t.url,{before:c,after:t.title?" ":")",...o.current()}))),l(),t.title&&(l=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(t.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),a(),c}function Fce(t,e,n){return s$(t,n)?"<":"["}a$.peek=Bce;function a$(t,e,n,r){const i=t.referenceType,s=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(t,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...a.current()});return o(),n.stack=u,s(),i==="full"||!c||c!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Bce(){return"["}function mA(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function $ce(t){const e=mA(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function zce(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function l$(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function Vce(t,e,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=t.ordered?zce(n):mA(n);const a=t.ordered?o==="."?")":".":$ce(n);let l=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const u=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),l$(n)===o&&u){let d=-1;for(;++d<t.children.length;){const h=t.children[d];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;const c=n.containerFlow(t,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),c}function Wce(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function Hce(t,e,n,r){const i=Wce(n);let s=n.bulletCurrent||mA(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,a.current()),u);return l(),c;function u(d,h,m){return h?(m?"":" ".repeat(o))+d:(m?s:s+" ".repeat(o-s.length))+d}}function Uce(t,e,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,r);return s(),i(),o}const qce=pv(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yce(t,e,n,r){return(t.children.some(function(o){return qce(o)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function Gce(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}c$.peek=Kce;function c$(t,e,n,r){const i=Gce(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i);let l=o.move(n.containerPhrasing(t,{after:i,before:a,...o.current()}));const c=l.charCodeAt(0),u=F0(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=ip(c)+l.slice(1));const d=l.charCodeAt(l.length-1),h=F0(r.after.charCodeAt(0),d,i);h.inside&&(l=l.slice(0,-1)+ip(d));const m=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:u.outside},a+l+m}function Kce(t,e,n){return n.options.strong||"*"}function Zce(t,e,n,r){return n.safe(t.value,r)}function Xce(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function Qce(t,e,n){const r=(l$(n)+(n.options.ruleSpaces?" ":"")).repeat(Xce(n));return n.options.ruleSpaces?r.slice(0,-1):r}const u$={blockquote:bce,break:lD,code:Nce,definition:_ce,emphasis:e$,hardBreak:lD,heading:Rce,html:t$,image:n$,imageReference:r$,inlineCode:i$,link:o$,linkReference:a$,list:Vce,listItem:Hce,paragraph:Uce,root:Yce,strong:c$,text:Zce,thematicBreak:Qce};function Jce(){return{enter:{table:eue,tableData:cD,tableHeader:cD,tableRow:nue},exit:{codeText:rue,table:tue,tableData:rk,tableHeader:rk,tableRow:rk}}}function eue(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function tue(t){this.exit(t),this.data.inTable=void 0}function nue(t){this.enter({type:"tableRow",children:[]},t)}function rk(t){this.exit(t)}function cD(t){this.enter({type:"tableCell",children:[]},t)}function rue(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,iue));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function iue(t,e){return e==="|"?e:t}function sue(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
285
285
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:l,tableRow:a}};function o(m,y,v,w){return c(u(m,v,w),m.align)}function a(m,y,v,w){const b=d(m,v,w),k=c([b]);return k.slice(0,k.indexOf(`
|
|
286
|
-
`))}function l(m,y,v,w){const b=v.enter("tableCell"),k=v.enter("phrasing"),C=v.containerPhrasing(m,{...w,before:s,after:s});return k(),b(),C}function c(m,y){return vce(m,{align:y,alignDelimiters:r,padding:n,stringLength:i})}function u(m,y,v){const w=m.children;let b=-1;const k=[],C=y.enter("table");for(;++b<w.length;)k[b]=d(w[b],y,v);return C(),k}function d(m,y,v){const w=m.children;let b=-1;const k=[],C=y.enter("tableRow");for(;++b<w.length;)k[b]=l(w[b],m,y,v);return C(),k}function h(m,y,v){let w=u$.inlineCode(m,y,v);return v.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function oue(){return{exit:{taskListCheckValueChecked:uD,taskListCheckValueUnchecked:uD,paragraph:lue}}}function aue(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cue}}}function uD(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function lue(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function cue(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=u$.listItem(t,e,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function uue(){return[Vle(),cce(),hce(),Jce(),oue()]}function due(t){return{extensions:[Wle(),uce(t),pce(),sue(t),aue()]}}const fue={tokenize:xue,partial:!0},d$={tokenize:vue,partial:!0},f$={tokenize:wue,partial:!0},h$={tokenize:bue,partial:!0},hue={tokenize:kue,partial:!0},p$={name:"wwwAutolink",tokenize:gue,previous:g$},m$={name:"protocolAutolink",tokenize:yue,previous:y$},xa={name:"emailAutolink",tokenize:mue,previous:x$},_o={};function pue(){return{text:_o}}let tc=48;for(;tc<123;)_o[tc]=xa,tc++,tc===58?tc=65:tc===91&&(tc=97);_o[43]=xa;_o[45]=xa;_o[46]=xa;_o[95]=xa;_o[72]=[xa,m$];_o[104]=[xa,m$];_o[87]=[xa,p$];_o[119]=[xa,p$];function mue(t,e,n){const r=this;let i,s;return o;function o(d){return!sE(d)||!x$.call(r,r.previous)||gA(r.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(d))}function a(d){return sE(d)?(t.consume(d),a):d===64?(t.consume(d),l):n(d)}function l(d){return d===46?t.check(hue,u,c)(d):d===45||d===95||_r(d)?(s=!0,t.consume(d),l):u(d)}function c(d){return t.consume(d),i=!0,l}function u(d){return s&&i&&Hr(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function gue(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!g$.call(r,r.previous)||gA(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(fue,t.attempt(d$,t.attempt(f$,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function yue(t,e,n){const r=this;let i="",s=!1;return o;function o(d){return(d===72||d===104)&&y$.call(r,r.previous)&&!gA(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),t.consume(d),a):n(d)}function a(d){if(Hr(d)&&i.length<5)return i+=String.fromCodePoint(d),t.consume(d),a;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return t.consume(d),l}return n(d)}function l(d){return d===47?(t.consume(d),s?c:(s=!0,l)):n(d)}function c(d){return d===null||j0(d)||Qt(d)||kc(d)||dv(d)?n(d):t.attempt(d$,t.attempt(f$,u),n)(d)}function u(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function xue(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}function vue(t,e,n){let r,i,s;return o;function o(c){return c===46||c===95?t.check(h$,l,a)(c):c===null||Qt(c)||kc(c)||c!==45&&dv(c)?l(c):(s=!0,t.consume(c),o)}function a(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),o}function l(c){return i||r||!s?n(c):e(c)}}function wue(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(h$,e,s)(o):o===null||Qt(o)||kc(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}function bue(t,e,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(t.consume(a),r):a===38?(t.consume(a),s):a===93?(t.consume(a),i):a===60||a===null||Qt(a)||kc(a)?e(a):n(a)}function i(a){return a===null||a===40||a===91||Qt(a)||kc(a)?e(a):r(a)}function s(a){return Hr(a)?o(a):n(a)}function o(a){return a===59?(t.consume(a),r):Hr(a)?(t.consume(a),o):n(a)}}function kue(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return _r(s)?n(s):e(s)}}function g$(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Qt(t)}function y$(t){return!Hr(t)}function x$(t){return!(t===47||sE(t))}function sE(t){return t===43||t===45||t===46||t===95||_r(t)}function gA(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Sue={tokenize:Pue,partial:!0};function Cue(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Aue,continuation:{tokenize:_ue},exit:Mue}},text:{91:{name:"gfmFootnoteCall",tokenize:Nue},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Eue,resolveTo:Tue}}}}function Eue(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);const c=Ts(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function Tue(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...a),t}function Nue(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return a;function a(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(d){if(s>999||d===93&&!o||d===null||d===91||Qt(d))return n(d);if(d===93){t.exit("chunkString");const h=t.exit("gfmFootnoteCallString");return i.includes(Ts(r.sliceSerialize(h)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return Qt(d)||(o=!0),s++,t.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(t.consume(d),s++,c):c(d)}}function Aue(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,a;return l;function l(y){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(y),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(y){return y===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(y),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",u):n(y)}function u(y){if(o>999||y===93&&!a||y===null||y===91||Qt(y))return n(y);if(y===93){t.exit("chunkString");const v=t.exit("gfmFootnoteDefinitionLabelString");return s=Ts(r.sliceSerialize(v)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(y),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return Qt(y)||(a=!0),o++,t.consume(y),y===92?d:u}function d(y){return y===91||y===92||y===93?(t.consume(y),o++,u):u(y)}function h(y){return y===58?(t.enter("definitionMarker"),t.consume(y),t.exit("definitionMarker"),i.includes(s)||i.push(s),Pt(t,m,"gfmFootnoteDefinitionWhitespace")):n(y)}function m(y){return e(y)}}function _ue(t,e,n){return t.check(um,e,t.attempt(Sue,e,n))}function Mue(t){t.exit("gfmFootnoteDefinition")}function Pue(t,e,n){const r=this;return Pt(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}function Oue(t){let n=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",u,a],["enter",o[c][1],a],["exit",o[c][1],a],["enter",d,a]],m=a.parser.constructs.insideSpan.null;m&&Mi(h,h.length,0,fv(m,o.slice(c+1,l),a)),Mi(h,h.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",u,a]]),Mi(o,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){const c=this.previous,u=this.events;let d=0;return h;function h(y){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(y):(o.enter("strikethroughSequenceTemporary"),m(y))}function m(y){const v=fd(c);if(y===126)return d>1?l(y):(o.consume(y),d++,m);if(d<2&&!n)return l(y);const w=o.exit("strikethroughSequenceTemporary"),b=fd(y);return w._open=!b||b===2&&!!v,w._close=!v||v===2&&!!b,a(y)}}}class Rue{constructor(){this.map=[]}add(e,n,r){Due(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(const s of i)e.push(s);i=r.pop()}this.map.length=0}}function Due(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function jue(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function Iue(){return{flow:{null:{name:"table",tokenize:Lue,resolveAll:Fue}}}}function Lue(t,e,n){const r=this;let i=0,s=0,o;return a;function a(R){let B=r.events.length-1;for(;B>-1;){const I=r.events[B][1].type;if(I==="lineEnding"||I==="linePrefix")B--;else break}const F=B>-1?r.events[B][1].type:null,W=F==="tableHead"||F==="tableRow"?A:l;return W===A&&r.parser.lazy[r.now().line]?n(R):W(R)}function l(R){return t.enter("tableHead"),t.enter("tableRow"),c(R)}function c(R){return R===124||(o=!0,s+=1),u(R)}function u(R){return R===null?n(R):st(R)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),m):n(R):Nt(R)?Pt(t,u,"whitespace")(R):(s+=1,o&&(o=!1,i+=1),R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),o=!0,u):(t.enter("data"),d(R)))}function d(R){return R===null||R===124||Qt(R)?(t.exit("data"),u(R)):(t.consume(R),R===92?h:d)}function h(R){return R===92||R===124?(t.consume(R),d):d(R)}function m(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(t.enter("tableDelimiterRow"),o=!1,Nt(R)?Pt(t,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):y(R))}function y(R){return R===45||R===58?w(R):R===124?(o=!0,t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),v):_(R)}function v(R){return Nt(R)?Pt(t,w,"whitespace")(R):w(R)}function w(R){return R===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),b):R===45?(s+=1,b(R)):R===null||st(R)?T(R):_(R)}function b(R){return R===45?(t.enter("tableDelimiterFiller"),k(R)):_(R)}function k(R){return R===45?(t.consume(R),k):R===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),C):(t.exit("tableDelimiterFiller"),C(R))}function C(R){return Nt(R)?Pt(t,T,"whitespace")(R):T(R)}function T(R){return R===124?y(R):R===null||st(R)?!o||i!==s?_(R):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(R)):_(R)}function _(R){return n(R)}function A(R){return t.enter("tableRow"),M(R)}function M(R){return R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),M):R===null||st(R)?(t.exit("tableRow"),e(R)):Nt(R)?Pt(t,M,"whitespace")(R):(t.enter("data"),O(R))}function O(R){return R===null||R===124||Qt(R)?(t.exit("data"),M(R)):(t.consume(R),R===92?D:O)}function D(R){return R===92||R===124?(t.consume(R),O):O(R)}}function Fue(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,c,u,d;const h=new Rue;for(;++n<t.length;){const m=t[n],y=m[1];m[0]==="enter"?y.type==="tableHead"?(a=!1,l!==0&&(dD(h,e,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",c,e]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",u,e]])),i=y.type==="tableDelimiterRow"?2:u?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=ly(h,e,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=ly(h,e,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):y.type==="tableHead"?(a=!0,l=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=ly(h,e,s,i,n,d)):o[1]!==0&&(d=ly(h,e,o,i,n,d)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&dD(h,e,l,c,u),h.consume(e.events),n=-1;++n<e.events.length;){const m=e.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=jue(e.events,n))}return t}function ly(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},Au(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const l=Au(e.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const c=Au(e.events,n[2]),u=Au(e.events,n[3]),d={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(t.add(n[2],0,[["enter",d,e]]),r!==2){const h=e.events[n[2]],m=e.events[n[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,v=n[3]-n[2]-1;t.add(y,v,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return i!==void 0&&(s.end=Object.assign({},Au(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}function dD(t,e,n,r,i){const s=[],o=Au(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}function Au(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const Bue={name:"tasklistCheck",tokenize:zue};function $ue(){return{text:{91:Bue}}}function zue(t,e,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),s)}function s(l){return Qt(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(l)}function a(l){return st(l)?e(l):Nt(l)?t.check({tokenize:Vue},e,n)(l):n(l)}}function Vue(t,e,n){return Pt(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function Wue(t){return _B([pue(),Cue(),Oue(t),Iue(),$ue()])}const Hue={};function Uue(t){const e=this,n=t||Hue,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Wue(n)),s.push(uue()),o.push(due(n))}const que="modulepreload",Yue=function(t){return"/"+t},fD={},Gue=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Yue(l),l in fD)return;fD[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":que,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};async function Kue(t,e){const{codeToTokens:n,bundledLanguages:r}=await Gue(async()=>{const{codeToTokens:s,bundledLanguages:o}=await import("./index-C2wZ4JLF.js");return{codeToTokens:s,bundledLanguages:o}},[]);if(!(e in r))return null;const{tokens:i}=await n(t,{lang:e,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}function Zue({children:t}){const e=t.replace(/\\/g,"\\\\").replace(/\\n/g,`
|
|
286
|
+
`))}function l(m,y,v,w){const b=v.enter("tableCell"),k=v.enter("phrasing"),C=v.containerPhrasing(m,{...w,before:s,after:s});return k(),b(),C}function c(m,y){return vce(m,{align:y,alignDelimiters:r,padding:n,stringLength:i})}function u(m,y,v){const w=m.children;let b=-1;const k=[],C=y.enter("table");for(;++b<w.length;)k[b]=d(w[b],y,v);return C(),k}function d(m,y,v){const w=m.children;let b=-1;const k=[],C=y.enter("tableRow");for(;++b<w.length;)k[b]=l(w[b],m,y,v);return C(),k}function h(m,y,v){let w=u$.inlineCode(m,y,v);return v.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function oue(){return{exit:{taskListCheckValueChecked:uD,taskListCheckValueUnchecked:uD,paragraph:lue}}}function aue(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cue}}}function uD(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function lue(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,o;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function cue(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=u$.listItem(t,e,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function uue(){return[Vle(),cce(),hce(),Jce(),oue()]}function due(t){return{extensions:[Wle(),uce(t),pce(),sue(t),aue()]}}const fue={tokenize:xue,partial:!0},d$={tokenize:vue,partial:!0},f$={tokenize:wue,partial:!0},h$={tokenize:bue,partial:!0},hue={tokenize:kue,partial:!0},p$={name:"wwwAutolink",tokenize:gue,previous:g$},m$={name:"protocolAutolink",tokenize:yue,previous:y$},xa={name:"emailAutolink",tokenize:mue,previous:x$},_o={};function pue(){return{text:_o}}let tc=48;for(;tc<123;)_o[tc]=xa,tc++,tc===58?tc=65:tc===91&&(tc=97);_o[43]=xa;_o[45]=xa;_o[46]=xa;_o[95]=xa;_o[72]=[xa,m$];_o[104]=[xa,m$];_o[87]=[xa,p$];_o[119]=[xa,p$];function mue(t,e,n){const r=this;let i,s;return o;function o(d){return!sE(d)||!x$.call(r,r.previous)||gA(r.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(d))}function a(d){return sE(d)?(t.consume(d),a):d===64?(t.consume(d),l):n(d)}function l(d){return d===46?t.check(hue,u,c)(d):d===45||d===95||_r(d)?(s=!0,t.consume(d),l):u(d)}function c(d){return t.consume(d),i=!0,l}function u(d){return s&&i&&Hr(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function gue(t,e,n){const r=this;return i;function i(o){return o!==87&&o!==119||!g$.call(r,r.previous)||gA(r.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(fue,t.attempt(d$,t.attempt(f$,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function yue(t,e,n){const r=this;let i="",s=!1;return o;function o(d){return(d===72||d===104)&&y$.call(r,r.previous)&&!gA(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),t.consume(d),a):n(d)}function a(d){if(Hr(d)&&i.length<5)return i+=String.fromCodePoint(d),t.consume(d),a;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return t.consume(d),l}return n(d)}function l(d){return d===47?(t.consume(d),s?c:(s=!0,l)):n(d)}function c(d){return d===null||j0(d)||Qt(d)||kc(d)||dv(d)?n(d):t.attempt(d$,t.attempt(f$,u),n)(d)}function u(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function xue(t,e,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,t.consume(o),i):o===46&&r===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}function vue(t,e,n){let r,i,s;return o;function o(c){return c===46||c===95?t.check(h$,l,a)(c):c===null||Qt(c)||kc(c)||c!==45&&dv(c)?l(c):(s=!0,t.consume(c),o)}function a(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),o}function l(c){return i||r||!s?n(c):e(c)}}function wue(t,e){let n=0,r=0;return i;function i(o){return o===40?(n++,t.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(h$,e,s)(o):o===null||Qt(o)||kc(o)?e(o):(t.consume(o),i)}function s(o){return o===41&&r++,t.consume(o),i}}function bue(t,e,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(t.consume(a),r):a===38?(t.consume(a),s):a===93?(t.consume(a),i):a===60||a===null||Qt(a)||kc(a)?e(a):n(a)}function i(a){return a===null||a===40||a===91||Qt(a)||kc(a)?e(a):r(a)}function s(a){return Hr(a)?o(a):n(a)}function o(a){return a===59?(t.consume(a),r):Hr(a)?(t.consume(a),o):n(a)}}function kue(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return _r(s)?n(s):e(s)}}function g$(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Qt(t)}function y$(t){return!Hr(t)}function x$(t){return!(t===47||sE(t))}function sE(t){return t===43||t===45||t===46||t===95||_r(t)}function gA(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Sue={tokenize:Pue,partial:!0};function Cue(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Aue,continuation:{tokenize:_ue},exit:Mue}},text:{91:{name:"gfmFootnoteCall",tokenize:Nue},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Eue,resolveTo:Tue}}}}function Eue(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);const c=Ts(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function Tue(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...a),t}function Nue(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return a;function a(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(d){if(s>999||d===93&&!o||d===null||d===91||Qt(d))return n(d);if(d===93){t.exit("chunkString");const h=t.exit("gfmFootnoteCallString");return i.includes(Ts(r.sliceSerialize(h)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return Qt(d)||(o=!0),s++,t.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(t.consume(d),s++,c):c(d)}}function Aue(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,a;return l;function l(y){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(y),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(y){return y===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(y),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",u):n(y)}function u(y){if(o>999||y===93&&!a||y===null||y===91||Qt(y))return n(y);if(y===93){t.exit("chunkString");const v=t.exit("gfmFootnoteDefinitionLabelString");return s=Ts(r.sliceSerialize(v)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(y),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return Qt(y)||(a=!0),o++,t.consume(y),y===92?d:u}function d(y){return y===91||y===92||y===93?(t.consume(y),o++,u):u(y)}function h(y){return y===58?(t.enter("definitionMarker"),t.consume(y),t.exit("definitionMarker"),i.includes(s)||i.push(s),Pt(t,m,"gfmFootnoteDefinitionWhitespace")):n(y)}function m(y){return e(y)}}function _ue(t,e,n){return t.check(um,e,t.attempt(Sue,e,n))}function Mue(t){t.exit("gfmFootnoteDefinition")}function Pue(t,e,n){const r=this;return Pt(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}function Oue(t){let n=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",u,a],["enter",o[c][1],a],["exit",o[c][1],a],["enter",d,a]],m=a.parser.constructs.insideSpan.null;m&&Mi(h,h.length,0,fv(m,o.slice(c+1,l),a)),Mi(h,h.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",u,a]]),Mi(o,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){const c=this.previous,u=this.events;let d=0;return h;function h(y){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(y):(o.enter("strikethroughSequenceTemporary"),m(y))}function m(y){const v=fd(c);if(y===126)return d>1?l(y):(o.consume(y),d++,m);if(d<2&&!n)return l(y);const w=o.exit("strikethroughSequenceTemporary"),b=fd(y);return w._open=!b||b===2&&!!v,w._close=!v||v===2&&!!b,a(y)}}}class Rue{constructor(){this.map=[]}add(e,n,r){Due(this,e,n,r)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(const s of i)e.push(s);i=r.pop()}this.map.length=0}}function Due(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function jue(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function Iue(){return{flow:{null:{name:"table",tokenize:Lue,resolveAll:Fue}}}}function Lue(t,e,n){const r=this;let i=0,s=0,o;return a;function a(R){let B=r.events.length-1;for(;B>-1;){const I=r.events[B][1].type;if(I==="lineEnding"||I==="linePrefix")B--;else break}const F=B>-1?r.events[B][1].type:null,W=F==="tableHead"||F==="tableRow"?A:l;return W===A&&r.parser.lazy[r.now().line]?n(R):W(R)}function l(R){return t.enter("tableHead"),t.enter("tableRow"),c(R)}function c(R){return R===124||(o=!0,s+=1),u(R)}function u(R){return R===null?n(R):st(R)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),m):n(R):Nt(R)?Pt(t,u,"whitespace")(R):(s+=1,o&&(o=!1,i+=1),R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),o=!0,u):(t.enter("data"),d(R)))}function d(R){return R===null||R===124||Qt(R)?(t.exit("data"),u(R)):(t.consume(R),R===92?h:d)}function h(R){return R===92||R===124?(t.consume(R),d):d(R)}function m(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(t.enter("tableDelimiterRow"),o=!1,Nt(R)?Pt(t,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):y(R))}function y(R){return R===45||R===58?w(R):R===124?(o=!0,t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),v):_(R)}function v(R){return Nt(R)?Pt(t,w,"whitespace")(R):w(R)}function w(R){return R===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),b):R===45?(s+=1,b(R)):R===null||st(R)?T(R):_(R)}function b(R){return R===45?(t.enter("tableDelimiterFiller"),k(R)):_(R)}function k(R){return R===45?(t.consume(R),k):R===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(R),t.exit("tableDelimiterMarker"),C):(t.exit("tableDelimiterFiller"),C(R))}function C(R){return Nt(R)?Pt(t,T,"whitespace")(R):T(R)}function T(R){return R===124?y(R):R===null||st(R)?!o||i!==s?_(R):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(R)):_(R)}function _(R){return n(R)}function A(R){return t.enter("tableRow"),M(R)}function M(R){return R===124?(t.enter("tableCellDivider"),t.consume(R),t.exit("tableCellDivider"),M):R===null||st(R)?(t.exit("tableRow"),e(R)):Nt(R)?Pt(t,M,"whitespace")(R):(t.enter("data"),O(R))}function O(R){return R===null||R===124||Qt(R)?(t.exit("data"),M(R)):(t.consume(R),R===92?D:O)}function D(R){return R===92||R===124?(t.consume(R),O):O(R)}}function Fue(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,c,u,d;const h=new Rue;for(;++n<t.length;){const m=t[n],y=m[1];m[0]==="enter"?y.type==="tableHead"?(a=!1,l!==0&&(dD(h,e,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",c,e]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",u,e]])),i=y.type==="tableDelimiterRow"?2:u?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=ly(h,e,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=ly(h,e,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):y.type==="tableHead"?(a=!0,l=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=ly(h,e,s,i,n,d)):o[1]!==0&&(d=ly(h,e,o,i,n,d)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&dD(h,e,l,c,u),h.consume(e.events),n=-1;++n<e.events.length;){const m=e.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=jue(e.events,n))}return t}function ly(t,e,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},Au(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const l=Au(e.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const c=Au(e.events,n[2]),u=Au(e.events,n[3]),d={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(t.add(n[2],0,[["enter",d,e]]),r!==2){const h=e.events[n[2]],m=e.events[n[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,v=n[3]-n[2]-1;t.add(y,v,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return i!==void 0&&(s.end=Object.assign({},Au(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}function dD(t,e,n,r,i){const s=[],o=Au(e.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,e])),r.end=Object.assign({},o),s.push(["exit",r,e]),t.add(n+1,0,s)}function Au(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const Bue={name:"tasklistCheck",tokenize:zue};function $ue(){return{text:{91:Bue}}}function zue(t,e,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),s)}function s(l){return Qt(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(l)}function a(l){return st(l)?e(l):Nt(l)?t.check({tokenize:Vue},e,n)(l):n(l)}}function Vue(t,e,n){return Pt(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function Wue(t){return _B([pue(),Cue(),Oue(t),Iue(),$ue()])}const Hue={};function Uue(t){const e=this,n=t||Hue,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Wue(n)),s.push(uue()),o.push(due(n))}const que="modulepreload",Yue=function(t){return"/"+t},fD={},Gue=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Yue(l),l in fD)return;fD[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":que,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};async function Kue(t,e){const{codeToTokens:n,bundledLanguages:r}=await Gue(async()=>{const{codeToTokens:s,bundledLanguages:o}=await import("./index-DaEb9DzI.js");return{codeToTokens:s,bundledLanguages:o}},[]);if(!(e in r))return null;const{tokens:i}=await n(t,{lang:e,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}function Zue({children:t}){const e=t.replace(/\\n/g,`
|
|
287
287
|
`);return g.jsx(jle,{remarkPlugins:[Uue],components:Que,className:"space-y-3",children:e})}const v$=ne.memo(({children:t,language:e,...n})=>{const[r,i]=S.useState([]);return S.useEffect(()=>{Kue(t,e).then(s=>{s&&i(s)})},[t,e]),r.length?g.jsx("pre",{...n,children:g.jsx("code",{children:r.map((s,o)=>g.jsxs(g.Fragment,{children:[g.jsx("span",{children:s.map((a,l)=>{const c=typeof a.htmlStyle=="string"?void 0:a.htmlStyle;return g.jsx("span",{className:"text-shiki-light bg-shiki-light-bg dark:text-shiki-dark dark:bg-shiki-dark-bg",style:c,children:a.content},l)})},o),o!==r.length-1&&`
|
|
288
|
-
`]}))})}):g.jsx("pre",{...n,children:t})});v$.displayName="HighlightedCode";const Xue=({children:t,className:e,language:n,...r})=>{const i=typeof t=="string"?t:oE(t),s=ve("overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",e);return g.jsxs("div",{className:"group/code relative mb-4",children:[g.jsx(S.Suspense,{fallback:g.jsx("pre",{className:s,...r,children:t}),children:g.jsx(v$,{language:n,className:s,children:i})}),g.jsx("div",{className:"invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100",children:g.jsx(D0,{content:i,copyMessage:"Copied code to clipboard"})})]})};function oE(t){var e;if(typeof t=="string")return t;if((e=t==null?void 0:t.props)!=null&&e.children){let n=t.props.children;return Array.isArray(n)?n.map(r=>oE(r)).join(""):oE(n)}return""}const Que={h1:hr("h1","text-2xl font-semibold"),h2:hr("h2","font-semibold text-xl"),h3:hr("h3","font-semibold text-lg"),h4:hr("h4","font-semibold text-base"),h5:hr("h5","font-medium"),strong:hr("strong","font-semibold"),a:hr("a","underline underline-offset-2"),blockquote:hr("blockquote","border-l-2 border-primary pl-4"),code:({children:t,className:e,node:n,...r})=>{const i=/language-(\w+)/.exec(e||"");return i?g.jsx(Xue,{className:e,language:i[1],...r,children:t}):g.jsx("code",{className:ve("font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"),...r,children:t})},pre:({children:t})=>t,ol:hr("ol","list-decimal space-y-2 pl-6"),ul:hr("ul","list-disc space-y-2 pl-6"),li:hr("li","my-1.5"),table:hr("table","w-full border-collapse overflow-y-auto rounded-md border border-foreground/20"),th:hr("th","border border-foreground/20 px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right"),td:hr("td","border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right"),tr:hr("tr","m-0 border-t p-0 even:bg-muted"),p:hr("p","whitespace-pre-wrap leading-relaxed"),hr:hr("hr","border-foreground/20")};function hr(t,e){const n=({node:r,...i})=>g.jsx(t,{className:e,...i});return n.displayName=t,n}const Jue=Hd("group/message relative break-words rounded-lg p-3 text-sm sm:max-w-[70%]",{variants:{isUser:{true:"bg-primary text-primary-foreground",false:"bg-muted text-foreground"},isError:{true:"bg-red-100 dark:bg-red-900/20",false:""},animation:{none:"",slide:"duration-300 animate-in fade-in-0",scale:"duration-300 animate-in fade-in-0 zoom-in-75",fade:"duration-500 animate-in fade-in-0"}},compoundVariants:[{isUser:!0,animation:"slide",class:"slide-in-from-right"},{isUser:!1,animation:"slide",class:"slide-in-from-left"},{isUser:!0,animation:"scale",class:"origin-bottom-right"},{isUser:!1,animation:"scale",class:"origin-bottom-left"}]}),ede=({role:t,content:e,createdAt:n,showTimeStamp:r=!1,animation:i="scale",actions:s,className:o,experimental_attachments:a,isError:l=!1})=>{const c=t==="user",u=S.useMemo(()=>a==null?void 0:a.map(h=>{const m=tde(h.url);return new File([m],h.name??"Unknown")}),[a]),d=n==null?void 0:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return g.jsxs("div",{className:ve("flex flex-col",c?"items-end":"items-start"),children:[u?g.jsx("div",{className:"mb-1 flex gap-2 flex-wrap",children:u.map((h,m)=>g.jsx(QN,{file:h},m))}):null,g.jsxs("div",{className:ve(Jue({isUser:c,isError:l,animation:i}),o),children:[g.jsx("div",{children:g.jsx(Zue,{children:e})}),t==="assistant"&&s?g.jsx("div",{className:"absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 opacity-0 transition-opacity group-hover/message:opacity-100 text-foreground",children:s}):null]}),r&&n?g.jsx("time",{dateTime:n.toISOString(),className:ve("mt-1 block px-1 text-xs opacity-50",i!=="none"&&"duration-500 animate-in fade-in-0"),children:d}):null]})};function tde(t){const e=t.split(",")[1],n=Buffer.from(e??"","base64");return new Uint8Array(n)}function nde(){return g.jsx("div",{className:"justify-left flex space-x-1",children:g.jsx("div",{className:"rounded-lg bg-muted p-3",children:g.jsxs("div",{className:"flex -space-x-2.5",children:[g.jsx(v1,{className:"h-5 w-5 animate-typing-dot-bounce"}),g.jsx(v1,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:90ms]"}),g.jsx(v1,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:180ms]"})]})})})}function rde({messages:t,showTimeStamps:e=!0,isTyping:n=!1,messageOptions:r}){return g.jsxs("div",{className:"space-y-4 overflow-visible",children:[t.map((i,s)=>{const o=typeof r=="function"?r(i):r;return i.role==="assistant"&&!i.content.trim()?null:g.jsx(ede,{showTimeStamp:e,...i,...o},s)}),n&&g.jsx(nde,{})]})}function ide({label:t,append:e,suggestions:n}){return g.jsxs("div",{className:"space-y-6",children:[g.jsx("h2",{className:"text-center text-2xl font-bold",children:t}),g.jsx("div",{className:"flex flex-col sm:flex-row gap-6 text-sm items-center justify-center",children:n.map(r=>g.jsx("button",{onClick:()=>e({role:"user",content:r}),className:"h-max rounded-xl border bg-transparent p-4 hover:bg-accent",children:g.jsx("p",{children:r})},r))})]})}const sde=50;function ode(t){const e=S.useRef(null),n=S.useRef(null),[r,i]=S.useState(!0),s=()=>{e.current&&(e.current.scrollTop=e.current.scrollHeight)},o=()=>{if(e.current){const{scrollTop:l,scrollHeight:c,clientHeight:u}=e.current;if(n.current?l<n.current:!1)i(!1);else{const h=Math.abs(c-l-u)<sde;i(h)}n.current=l}},a=()=>{i(!1)};return S.useEffect(()=>{e.current&&(n.current=e.current.scrollTop)},[]),S.useEffect(()=>{r&&s()},t),{containerRef:e,scrollToBottom:s,handleScroll:o,shouldAutoScroll:r,handleTouchStart:a}}function ade({messages:t,children:e}){const{containerRef:n,scrollToBottom:r,handleScroll:i,shouldAutoScroll:s,handleTouchStart:o}=ode([t]);return g.jsxs("div",{className:"grid overflow-y-auto pb-4 grid-cols-1",ref:n,onScroll:i,onTouchStart:o,children:[g.jsx("div",{className:"[grid-column:1/1] [grid-row:1/1] max-w-full",children:e}),g.jsx("div",{className:"flex justify-end items-end [grid-column:1/1] [grid-row:1/1] flex-1",children:!s&&g.jsx("div",{className:"sticky bottom-0 left-0 flex w-full justify-end",children:g.jsx(pt,{onClick:r,className:"h-8 w-8 rounded-full ease-in-out animate-in fade-in-0 slide-in-from-bottom-1",size:"icon",variant:"ghost",children:g.jsx(JZ,{className:"h-4 w-4"})})})})]})}const w$=S.forwardRef(({className:t,...e},n)=>g.jsx("div",{ref:n,className:ve("grid max-h-full w-full grid-rows-[1fr_auto]",t),...e}));w$.displayName="ChatContainer";const b$=S.forwardRef(({children:t,handleSubmit:e,isPending:n,className:r},i)=>{const[s,o]=S.useState(null),a=l=>{if(n){l.preventDefault();return}if(!s){e(l);return}const c=lde(s);e(l,{experimental_attachments:c}),o(null)};return g.jsx("form",{ref:i,onSubmit:a,className:r,children:t({files:s,setFiles:o})})});b$.displayName="ChatForm";function lde(t){const e=new DataTransfer;for(const n of Array.from(t))e.items.add(n);return e.files}function cde({agentId:t,initialMessages:e=[],agentName:n,threadId:r,memory:i}){const[s,o]=S.useState(e),[a,l]=S.useState(""),[c,u]=S.useState(!1),{mutate:d}=KN();S.useEffect(()=>{e&&o(e)},[e]);const h=S.useCallback(C=>{l(C.target.value)},[]),m=async C=>{var M;if((M=C==null?void 0:C.preventDefault)==null||M.call(C),!a.trim()||c)return;const T=a;l(""),u(!0);const _={id:Date.now().toString(),role:"user",content:T},A={id:(Date.now()+1).toString(),role:"assistant",content:""};o(O=>[...O,_,A]);try{const O=await fetch("/api/agents/"+t+"/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[T],runId:t,...i?{threadId:r,resourceid:t}:{}})});if(!O.body)throw new Error("No response body");if(O.status!==200){const I=await O.json();throw new Error(I.message)}d(`/api/memory/threads?resourceid=${t}&agentId=${t}`);const D=O.body.getReader(),R=new TextDecoder;let B="",F="",W="";try{for(;;){const{done:I,value:Y}=await D.read();if(I)break;const V=R.decode(Y);B+=V;const G=B.matchAll(/0:"([^"]*)"/g),H=B.matchAll(/3:"([^"]*)"/g);if(H)for(const z of H){const L=z[1];W+=L,o(q=>[...q.slice(0,-1),{...q[q.length-1],content:W,isError:!0}])}for(const z of G){const L=z[1];F+=L,o(q=>[...q.slice(0,-1),{...q[q.length-1],content:F}])}B=""}}catch(I){throw new Error(I.message)}finally{D.releaseLock()}}catch(O){o(D=>[...D.slice(0,-1),{...D[D.length-1],content:(O==null?void 0:O.message)||"An error occurred while processing your request.",isError:!0}])}finally{u(!1)}},y=s.at(-1),v=s.length===0,w=c&&(y==null?void 0:y.role)==="assistant"&&!(y!=null&&y.content.trim()),b=S.useCallback(C=>{l(C.content),m()},[m]),k=["What capabilities do you have?","How can you help me?","Tell me about yourself"];return g.jsxs(w$,{className:"h-full px-4 pb-3 pt-4 max-w-[1000px] mx-auto",children:[g.jsx("div",{className:"flex flex-col h-full",children:v?g.jsx("div",{className:"mx-auto max-w-2xl",children:g.jsx(ide,{label:`Chat with ${n}`,append:b,suggestions:k})}):g.jsx(zn,{className:" h-[calc(100vh-15rem)] px-4",children:g.jsx(ade,{messages:s,children:g.jsx(rde,{messages:s,isTyping:w})})})}),g.jsxs("div",{className:"flex flex-col mt-auto gap-2",children:[g.jsx(b$,{isPending:c||w,handleSubmit:m,children:({files:C,setFiles:T})=>g.jsx(hB,{value:a,onChange:h,files:C,setFiles:T,isGenerating:c,placeholder:"Enter your message..."})}),!i&&g.jsxs("div",{className:"flex items-center gap-1 text-sm text-mastra-el-5",children:[g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-purple-400",children:[g.jsx("circle",{cx:"12",cy:"12",r:"10"}),g.jsx("path",{d:"M12 16v-4"}),g.jsx("path",{d:"M12 8h.01"})]}),g.jsxs("span",{className:"text-xs text-gray-300/60",children:["Agent will not remember previous messages. To enable memory for agent see"," ",g.jsx("a",{href:"https://mastra.ai/docs/agents/01-agent-memory",target:"_blank",rel:"noopener",className:"text-gray-300/60 hover:text-gray-100 underline",children:"docs."})]})]})]})]})}function yA(t){const e=t+"CollectionProvider",[n,r]=Ii(e),[i,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:y,children:v}=m,w=ne.useRef(null),b=ne.useRef(new Map).current;return g.jsx(i,{scope:y,itemMap:b,collectionRef:w,children:v})};o.displayName=e;const a=t+"CollectionSlot",l=ne.forwardRef((m,y)=>{const{scope:v,children:w}=m,b=s(a,v),k=kt(y,b.collectionRef);return g.jsx(go,{ref:k,children:w})});l.displayName=a;const c=t+"CollectionItemSlot",u="data-radix-collection-item",d=ne.forwardRef((m,y)=>{const{scope:v,children:w,...b}=m,k=ne.useRef(null),C=kt(y,k),T=s(c,v);return ne.useEffect(()=>(T.itemMap.set(k,{ref:k,...b}),()=>void T.itemMap.delete(k))),g.jsx(go,{[u]:"",ref:C,children:w})});d.displayName=c;function h(m){const y=s(t+"CollectionConsumer",m);return ne.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((T,_)=>b.indexOf(T.ref.current)-b.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},h,r]}var ude=vK.useId||(()=>{}),dde=0;function Vn(t){const[e,n]=S.useState(ude());return Mr(()=>{n(r=>r??String(dde++))},[t]),e?`radix-${e}`:""}function wo({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=fde({defaultProp:e,onChange:n}),s=t!==void 0,o=s?t:r,a=Fn(n),l=S.useCallback(c=>{if(s){const d=typeof c=="function"?c(t):c;d!==t&&a(d)}else i(c)},[s,t,i,a]);return[o,l]}function fde({defaultProp:t,onChange:e}){const n=S.useState(t),[r]=n,i=S.useRef(r),s=Fn(e);return S.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}var ik="rovingFocusGroup.onEntryFocus",hde={bubbles:!1,cancelable:!0},gv="RovingFocusGroup",[aE,k$,pde]=yA(gv),[mde,yv]=Ii(gv,[pde]),[gde,yde]=mde(gv),S$=S.forwardRef((t,e)=>g.jsx(aE.Provider,{scope:t.__scopeRovingFocusGroup,children:g.jsx(aE.Slot,{scope:t.__scopeRovingFocusGroup,children:g.jsx(xde,{...t,ref:e})})}));S$.displayName=gv;var xde=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=t,h=S.useRef(null),m=kt(e,h),y=nm(s),[v=null,w]=wo({prop:o,defaultProp:a,onChange:l}),[b,k]=S.useState(!1),C=Fn(c),T=k$(n),_=S.useRef(!1),[A,M]=S.useState(0);return S.useEffect(()=>{const O=h.current;if(O)return O.addEventListener(ik,C),()=>O.removeEventListener(ik,C)},[C]),g.jsx(gde,{scope:n,orientation:r,dir:y,loop:i,currentTabStopId:v,onItemFocus:S.useCallback(O=>w(O),[w]),onItemShiftTab:S.useCallback(()=>k(!0),[]),onFocusableItemAdd:S.useCallback(()=>M(O=>O+1),[]),onFocusableItemRemove:S.useCallback(()=>M(O=>O-1),[]),children:g.jsx(Xe.div,{tabIndex:b||A===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...t.style},onMouseDown:Re(t.onMouseDown,()=>{_.current=!0}),onFocus:Re(t.onFocus,O=>{const D=!_.current;if(O.target===O.currentTarget&&D&&!b){const R=new CustomEvent(ik,hde);if(O.currentTarget.dispatchEvent(R),!R.defaultPrevented){const B=T().filter(V=>V.focusable),F=B.find(V=>V.active),W=B.find(V=>V.id===v),Y=[F,W,...B].filter(Boolean).map(V=>V.ref.current);T$(Y,u)}}_.current=!1}),onBlur:Re(t.onBlur,()=>k(!1))})})}),C$="RovingFocusGroupItem",E$=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,...o}=t,a=Vn(),l=s||a,c=yde(C$,n),u=c.currentTabStopId===l,d=k$(n),{onFocusableItemAdd:h,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return h(),()=>m()},[r,h,m]),g.jsx(aE.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:g.jsx(Xe.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...o,ref:e,onMouseDown:Re(t.onMouseDown,y=>{r?c.onItemFocus(l):y.preventDefault()}),onFocus:Re(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Re(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){c.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const v=bde(y,c.orientation,c.dir);if(v!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let b=d().filter(k=>k.focusable).map(k=>k.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const k=b.indexOf(y.currentTarget);b=c.loop?kde(b,k+1):b.slice(k+1)}setTimeout(()=>T$(b))}})})})});E$.displayName=C$;var vde={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wde(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function bde(t,e,n){const r=wde(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vde[r]}function T$(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function kde(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var N$=S$,A$=E$,xA="Tabs",[Sde,f4e]=Ii(xA,[yv]),_$=yv(),[Cde,vA]=Sde(xA),M$=S.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:o="horizontal",dir:a,activationMode:l="automatic",...c}=t,u=nm(a),[d,h]=wo({prop:r,onChange:i,defaultProp:s});return g.jsx(Cde,{scope:n,baseId:Vn(),value:d,onValueChange:h,orientation:o,dir:u,activationMode:l,children:g.jsx(Xe.div,{dir:u,"data-orientation":o,...c,ref:e})})});M$.displayName=xA;var P$="TabsList",O$=S.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...i}=t,s=vA(P$,n),o=_$(n);return g.jsx(N$,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:r,children:g.jsx(Xe.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:e})})});O$.displayName=P$;var R$="TabsTrigger",D$=S.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=t,o=vA(R$,n),a=_$(n),l=L$(o.baseId,r),c=F$(o.baseId,r),u=r===o.value;return g.jsx(A$,{asChild:!0,...a,focusable:!i,active:u,children:g.jsx(Xe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...s,ref:e,onMouseDown:Re(t.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:Re(t.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:Re(t.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(r)})})})});D$.displayName=R$;var j$="TabsContent",I$=S.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...o}=t,a=vA(j$,n),l=L$(a.baseId,r),c=F$(a.baseId,r),u=r===a.value,d=S.useRef(u);return S.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),g.jsx(Rr,{present:i||u,children:({present:h})=>g.jsx(Xe.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:d.current?"0s":void 0},children:h&&s})})});I$.displayName=j$;function L$(t,e){return`${t}-trigger-${e}`}function F$(t,e){return`${t}-content-${e}`}var Ede=M$,B$=O$,$$=D$,z$=I$;const wA=Ede,xv=S.forwardRef(({className:t,...e},n)=>g.jsx(B$,{ref:n,className:ve(t),...e}));xv.displayName=B$.displayName;const ro=S.forwardRef(({className:t,...e},n)=>g.jsx($$,{ref:n,className:ve(t),...e}));ro.displayName=$$.displayName;const io=S.forwardRef(({className:t,...e},n)=>g.jsx(z$,{ref:n,className:ve("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));io.displayName=z$.displayName;function Tde({agentId:t}){var i;const{isLoading:e,agent:n}=$c(t),r=No();return e?g.jsx(zn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]})]})]})}):g.jsx(zn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Name"}),g.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.name})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Instructions"}),g.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:n==null?void 0:n.instructions})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Model"}),g.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.modelId})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Provider"}),g.jsx("p",{className:"text-mastra-el-5",children:(i=n==null?void 0:n.provider)==null?void 0:i.split(".")[0].toUpperCase()})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Tools"}),g.jsx("div",{className:"flex flex-col gap-2 text-mastra-el-5",children:Object.entries((n==null?void 0:n.tools)??{}).map(([s,o])=>g.jsx("span",{onClick:()=>{r(`/tools/${t}/${o.id}`)},className:"no-underline",children:o.id},s))})]})]})})}function Nde({agentId:t}){return g.jsx(zn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs w-[400px]",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsx("p",{className:"text-mastra-el-5",children:"/api/agents"})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/evals/ci"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/evals/live"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/instructions"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/generate"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/stream"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/text-object"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/stream-object"]})]})]})})}function Ade(t,e=globalThis==null?void 0:globalThis.document){const n=Fn(t);S.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var _de="DismissableLayer",lE="dismissableLayer.update",Mde="dismissableLayer.pointerDownOutside",Pde="dismissableLayer.focusOutside",hD,V$=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kd=S.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=t,c=S.useContext(V$),[u,d]=S.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=S.useState({}),y=kt(e,M=>d(M)),v=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(w),k=u?v.indexOf(u):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,T=k>=b,_=Dde(M=>{const O=M.target,D=[...c.branches].some(R=>R.contains(O));!T||D||(i==null||i(M),o==null||o(M),M.defaultPrevented||a==null||a())},h),A=jde(M=>{const O=M.target;[...c.branches].some(R=>R.contains(O))||(s==null||s(M),o==null||o(M),M.defaultPrevented||a==null||a())},h);return Ade(M=>{k===c.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},h),S.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(hD=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),pD(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=hD)}},[u,h,n,c]),S.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),pD())},[u,c]),S.useEffect(()=>{const M=()=>m({});return document.addEventListener(lE,M),()=>document.removeEventListener(lE,M)},[]),g.jsx(Xe.div,{...l,ref:y,style:{pointerEvents:C?T?"auto":"none":void 0,...t.style},onFocusCapture:Re(t.onFocusCapture,A.onFocusCapture),onBlurCapture:Re(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Re(t.onPointerDownCapture,_.onPointerDownCapture)})});Kd.displayName=_de;var Ode="DismissableLayerBranch",Rde=S.forwardRef((t,e)=>{const n=S.useContext(V$),r=S.useRef(null),i=kt(e,r);return S.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Xe.div,{...t,ref:i})});Rde.displayName=Ode;function Dde(t,e=globalThis==null?void 0:globalThis.document){const n=Fn(t),r=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){W$(Mde,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function jde(t,e=globalThis==null?void 0:globalThis.document){const n=Fn(t),r=S.useRef(!1);return S.useEffect(()=>{const i=s=>{s.target&&!r.current&&W$(Pde,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pD(){const t=new CustomEvent(lE);document.dispatchEvent(t)}function W$(t,e,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?uF(i,s):i.dispatchEvent(s)}var sk="focusScope.autoFocusOnMount",ok="focusScope.autoFocusOnUnmount",mD={bubbles:!1,cancelable:!0},Ide="FocusScope",fm=S.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=S.useState(null),c=Fn(i),u=Fn(s),d=S.useRef(null),h=kt(e,v=>l(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let v=function(C){if(m.paused||!a)return;const T=C.target;a.contains(T)?d.current=T:Ja(d.current,{select:!0})},w=function(C){if(m.paused||!a)return;const T=C.relatedTarget;T!==null&&(a.contains(T)||Ja(d.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const _ of C)_.removedNodes.length>0&&Ja(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const k=new MutationObserver(b);return a&&k.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),k.disconnect()}}},[r,a,m.paused]),S.useEffect(()=>{if(a){yD.add(m);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(sk,mD);a.addEventListener(sk,c),a.dispatchEvent(b),b.defaultPrevented||(Lde(Vde(H$(a)),{select:!0}),document.activeElement===v&&Ja(a))}return()=>{a.removeEventListener(sk,c),setTimeout(()=>{const b=new CustomEvent(ok,mD);a.addEventListener(ok,u),a.dispatchEvent(b),b.defaultPrevented||Ja(v??document.body,{select:!0}),a.removeEventListener(ok,u),yD.remove(m)},0)}}},[a,c,u,m]);const y=S.useCallback(v=>{if(!n&&!r||m.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(w&&b){const k=v.currentTarget,[C,T]=Fde(k);C&&T?!v.shiftKey&&b===T?(v.preventDefault(),n&&Ja(C,{select:!0})):v.shiftKey&&b===C&&(v.preventDefault(),n&&Ja(T,{select:!0})):b===k&&v.preventDefault()}},[n,r,m.paused]);return g.jsx(Xe.div,{tabIndex:-1,...o,ref:h,onKeyDown:y})});fm.displayName=Ide;function Lde(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Ja(r,{select:e}),document.activeElement!==n)return}function Fde(t){const e=H$(t),n=gD(e,t),r=gD(e.reverse(),t);return[n,r]}function H$(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function gD(t,e){for(const n of t)if(!Bde(n,{upTo:e}))return n}function Bde(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function $de(t){return t instanceof HTMLInputElement&&"select"in t}function Ja(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&$de(t)&&e&&t.select()}}var yD=zde();function zde(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=xD(t,e),t.unshift(e)},remove(e){var n;t=xD(t,e),(n=t[0])==null||n.resume()}}}function xD(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Vde(t){return t.filter(e=>e.tagName!=="A")}var Wde="Portal",hm=S.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,s]=S.useState(!1);Mr(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?X3.createPortal(g.jsx(Xe.div,{...r,ref:e}),o):null});hm.displayName=Wde;var ak=0;function vv(){S.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??vD()),document.body.insertAdjacentElement("beforeend",t[1]??vD()),ak++,()=>{ak===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ak--}},[])}function vD(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Qs=function(){return Qs=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Qs.apply(this,arguments)};function U$(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Hde(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var r0="right-scroll-bar-position",i0="width-before-scroll-bar",Ude="with-scroll-bars-hidden",qde="--removed-body-scroll-bar-size";function lk(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Yde(t,e){var n=S.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var Gde=typeof window<"u"?S.useLayoutEffect:S.useEffect,wD=new WeakMap;function Kde(t,e){var n=Yde(null,function(r){return t.forEach(function(i){return lk(i,r)})});return Gde(function(){var r=wD.get(n);if(r){var i=new Set(r),s=new Set(t),o=n.current;i.forEach(function(a){s.has(a)||lk(a,null)}),s.forEach(function(a){i.has(a)||lk(a,o)})}wD.set(n,t)},[t]),n}function Zde(t){return t}function Xde(t,e){e===void 0&&(e=Zde);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(s){var o=e(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var u=o;o=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return i}function Qde(t){t===void 0&&(t={});var e=Xde(null);return e.options=Qs({async:!0,ssr:!1},t),e}var q$=function(t){var e=t.sideCar,n=U$(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Qs({},n))};q$.isSideCarExport=!0;function Jde(t,e){return t.useMedium(e),q$}var Y$=Qde(),ck=function(){},wv=S.forwardRef(function(t,e){var n=S.useRef(null),r=S.useState({onScrollCapture:ck,onWheelCapture:ck,onTouchMoveCapture:ck}),i=r[0],s=r[1],o=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,d=t.shards,h=t.sideCar,m=t.noIsolation,y=t.inert,v=t.allowPinchZoom,w=t.as,b=w===void 0?"div":w,k=t.gapMode,C=U$(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=h,_=Kde([n,e]),A=Qs(Qs({},C),i);return S.createElement(S.Fragment,null,u&&S.createElement(T,{sideCar:Y$,removeScrollBar:c,shards:d,noIsolation:m,inert:y,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:k}),o?S.cloneElement(S.Children.only(a),Qs(Qs({},A),{ref:_})):S.createElement(b,Qs({},A,{className:l,ref:_}),a))});wv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wv.classNames={fullWidth:i0,zeroRight:r0};var efe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tfe(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=efe();return e&&t.setAttribute("nonce",e),t}function nfe(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function rfe(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var ife=function(){var t=0,e=null;return{add:function(n){t==0&&(e=tfe())&&(nfe(e,n),rfe(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},sfe=function(){var t=ife();return function(e,n){S.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},G$=function(){var t=sfe(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},ofe={left:0,top:0,right:0,gap:0},uk=function(t){return parseInt(t||"",10)||0},afe=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[uk(n),uk(r),uk(i)]},lfe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return ofe;var e=afe(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},cfe=G$(),Gu="data-scroll-locked",ufe=function(t,e,n,r){var i=t.left,s=t.top,o=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
288
|
+
`]}))})}):g.jsx("pre",{...n,children:t})});v$.displayName="HighlightedCode";const Xue=({children:t,className:e,language:n,...r})=>{const i=typeof t=="string"?t:oE(t),s=ve("overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",e);return g.jsxs("div",{className:"group/code relative mb-4",children:[g.jsx(S.Suspense,{fallback:g.jsx("pre",{className:s,...r,children:t}),children:g.jsx(v$,{language:n,className:s,children:i})}),g.jsx("div",{className:"invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100",children:g.jsx(D0,{content:i,copyMessage:"Copied code to clipboard"})})]})};function oE(t){var e;if(typeof t=="string")return t;if((e=t==null?void 0:t.props)!=null&&e.children){let n=t.props.children;return Array.isArray(n)?n.map(r=>oE(r)).join(""):oE(n)}return""}const Que={h1:hr("h1","text-2xl font-semibold"),h2:hr("h2","font-semibold text-xl"),h3:hr("h3","font-semibold text-lg"),h4:hr("h4","font-semibold text-base"),h5:hr("h5","font-medium"),strong:hr("strong","font-semibold"),a:hr("a","underline underline-offset-2"),blockquote:hr("blockquote","border-l-2 border-primary pl-4"),code:({children:t,className:e,node:n,...r})=>{const i=/language-(\w+)/.exec(e||"");return i?g.jsx(Xue,{className:e,language:i[1],...r,children:t}):g.jsx("code",{className:ve("font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"),...r,children:t})},pre:({children:t})=>t,ol:hr("ol","list-decimal space-y-2 pl-6"),ul:hr("ul","list-disc space-y-2 pl-6"),li:hr("li","my-1.5"),table:hr("table","w-full border-collapse overflow-y-auto rounded-md border border-foreground/20"),th:hr("th","border border-foreground/20 px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right"),td:hr("td","border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right"),tr:hr("tr","m-0 border-t p-0 even:bg-muted"),p:hr("p","whitespace-pre-wrap leading-relaxed"),hr:hr("hr","border-foreground/20")};function hr(t,e){const n=({node:r,...i})=>g.jsx(t,{className:e,...i});return n.displayName=t,n}const Jue=Hd("group/message relative break-words rounded-lg p-3 text-sm sm:max-w-[70%]",{variants:{isUser:{true:"bg-primary text-primary-foreground",false:"bg-muted text-foreground"},isError:{true:"bg-red-100 dark:bg-red-900/20",false:""},animation:{none:"",slide:"duration-300 animate-in fade-in-0",scale:"duration-300 animate-in fade-in-0 zoom-in-75",fade:"duration-500 animate-in fade-in-0"}},compoundVariants:[{isUser:!0,animation:"slide",class:"slide-in-from-right"},{isUser:!1,animation:"slide",class:"slide-in-from-left"},{isUser:!0,animation:"scale",class:"origin-bottom-right"},{isUser:!1,animation:"scale",class:"origin-bottom-left"}]}),ede=({role:t,content:e,createdAt:n,showTimeStamp:r=!1,animation:i="scale",actions:s,className:o,experimental_attachments:a,isError:l=!1})=>{const c=t==="user",u=S.useMemo(()=>a==null?void 0:a.map(h=>{const m=tde(h.url);return new File([m],h.name??"Unknown")}),[a]),d=n==null?void 0:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return g.jsxs("div",{className:ve("flex flex-col",c?"items-end":"items-start"),children:[u?g.jsx("div",{className:"mb-1 flex gap-2 flex-wrap",children:u.map((h,m)=>g.jsx(QN,{file:h},m))}):null,g.jsxs("div",{className:ve(Jue({isUser:c,isError:l,animation:i}),o),children:[g.jsx("div",{children:g.jsx(Zue,{children:e})}),t==="assistant"&&s?g.jsx("div",{className:"absolute -bottom-4 right-2 flex space-x-1 rounded-lg border bg-background p-1 opacity-0 transition-opacity group-hover/message:opacity-100 text-foreground",children:s}):null]}),r&&n?g.jsx("time",{dateTime:n.toISOString(),className:ve("mt-1 block px-1 text-xs opacity-50",i!=="none"&&"duration-500 animate-in fade-in-0"),children:d}):null]})};function tde(t){const e=t.split(",")[1],n=Buffer.from(e??"","base64");return new Uint8Array(n)}function nde(){return g.jsx("div",{className:"justify-left flex space-x-1",children:g.jsx("div",{className:"rounded-lg bg-muted p-3",children:g.jsxs("div",{className:"flex -space-x-2.5",children:[g.jsx(v1,{className:"h-5 w-5 animate-typing-dot-bounce"}),g.jsx(v1,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:90ms]"}),g.jsx(v1,{className:"h-5 w-5 animate-typing-dot-bounce [animation-delay:180ms]"})]})})})}function rde({messages:t,showTimeStamps:e=!0,isTyping:n=!1,messageOptions:r}){return g.jsxs("div",{className:"space-y-4 overflow-visible",children:[t.map((i,s)=>{const o=typeof r=="function"?r(i):r;return i.role==="assistant"&&!i.content.trim()?null:g.jsx(ede,{showTimeStamp:e,...i,...o},s)}),n&&g.jsx(nde,{})]})}function ide({label:t,append:e,suggestions:n}){return g.jsxs("div",{className:"space-y-6",children:[g.jsx("h2",{className:"text-center text-2xl font-bold",children:t}),g.jsx("div",{className:"flex flex-col sm:flex-row gap-6 text-sm items-center justify-center",children:n.map(r=>g.jsx("button",{onClick:()=>e({role:"user",content:r}),className:"h-max rounded-xl border bg-transparent p-4 hover:bg-accent",children:g.jsx("p",{children:r})},r))})]})}const sde=50;function ode(t){const e=S.useRef(null),n=S.useRef(null),[r,i]=S.useState(!0),s=()=>{e.current&&(e.current.scrollTop=e.current.scrollHeight)},o=()=>{if(e.current){const{scrollTop:l,scrollHeight:c,clientHeight:u}=e.current;if(n.current?l<n.current:!1)i(!1);else{const h=Math.abs(c-l-u)<sde;i(h)}n.current=l}},a=()=>{i(!1)};return S.useEffect(()=>{e.current&&(n.current=e.current.scrollTop)},[]),S.useEffect(()=>{r&&s()},t),{containerRef:e,scrollToBottom:s,handleScroll:o,shouldAutoScroll:r,handleTouchStart:a}}function ade({messages:t,children:e}){const{containerRef:n,scrollToBottom:r,handleScroll:i,shouldAutoScroll:s,handleTouchStart:o}=ode([t]);return g.jsxs("div",{className:"grid overflow-y-auto pb-4 grid-cols-1",ref:n,onScroll:i,onTouchStart:o,children:[g.jsx("div",{className:"[grid-column:1/1] [grid-row:1/1] max-w-full",children:e}),g.jsx("div",{className:"flex justify-end items-end [grid-column:1/1] [grid-row:1/1] flex-1",children:!s&&g.jsx("div",{className:"sticky bottom-0 left-0 flex w-full justify-end",children:g.jsx(pt,{onClick:r,className:"h-8 w-8 rounded-full ease-in-out animate-in fade-in-0 slide-in-from-bottom-1",size:"icon",variant:"ghost",children:g.jsx(JZ,{className:"h-4 w-4"})})})})]})}const w$=S.forwardRef(({className:t,...e},n)=>g.jsx("div",{ref:n,className:ve("grid max-h-full w-full grid-rows-[1fr_auto]",t),...e}));w$.displayName="ChatContainer";const b$=S.forwardRef(({children:t,handleSubmit:e,isPending:n,className:r},i)=>{const[s,o]=S.useState(null),a=l=>{if(n){l.preventDefault();return}if(!s){e(l);return}const c=lde(s);e(l,{experimental_attachments:c}),o(null)};return g.jsx("form",{ref:i,onSubmit:a,className:r,children:t({files:s,setFiles:o})})});b$.displayName="ChatForm";function lde(t){const e=new DataTransfer;for(const n of Array.from(t))e.items.add(n);return e.files}function cde({agentId:t,initialMessages:e=[],agentName:n,threadId:r,memory:i}){const[s,o]=S.useState(e),[a,l]=S.useState(""),[c,u]=S.useState(!1),{mutate:d}=KN();S.useEffect(()=>{e&&o(e)},[e]);const h=S.useCallback(C=>{l(C.target.value)},[]),m=async C=>{var M;if((M=C==null?void 0:C.preventDefault)==null||M.call(C),!a.trim()||c)return;const T=a;l(""),u(!0);const _={id:Date.now().toString(),role:"user",content:T},A={id:(Date.now()+1).toString(),role:"assistant",content:""};o(O=>[...O,_,A]);try{const O=await fetch("/api/agents/"+t+"/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[T],runId:t,...i?{threadId:r,resourceid:t}:{}})});if(!O.body)throw new Error("No response body");if(O.status!==200){const I=await O.json();throw new Error(I.message)}d(`/api/memory/threads?resourceid=${t}&agentId=${t}`);const D=O.body.getReader(),R=new TextDecoder;let B="",F="",W="";try{for(;;){const{done:I,value:Y}=await D.read();if(I)break;const V=R.decode(Y);B+=V;const G=B.matchAll(/0:"((?:\\.|(?!").)*?)"/g),H=B.matchAll(/3:"((?:\\.|(?!").)*?)"/g);if(H)for(const z of H){const L=z[1];W+=L,o(q=>[...q.slice(0,-1),{...q[q.length-1],content:W,isError:!0}])}for(const z of G){const L=z[1].replace(/\\"/g,'"');F+=L,o(q=>[...q.slice(0,-1),{...q[q.length-1],content:F}])}B=""}}catch(I){throw new Error(I.message)}finally{D.releaseLock()}}catch(O){o(D=>[...D.slice(0,-1),{...D[D.length-1],content:(O==null?void 0:O.message)||"An error occurred while processing your request.",isError:!0}])}finally{u(!1)}},y=s.at(-1),v=s.length===0,w=c&&(y==null?void 0:y.role)==="assistant"&&!(y!=null&&y.content.trim()),b=S.useCallback(C=>{l(C.content),m()},[m]),k=["What capabilities do you have?","How can you help me?","Tell me about yourself"];return g.jsxs(w$,{className:"h-full px-4 pb-3 pt-4 max-w-[1000px] mx-auto",children:[g.jsx("div",{className:"flex flex-col h-full",children:v?g.jsx("div",{className:"mx-auto max-w-2xl",children:g.jsx(ide,{label:`Chat with ${n}`,append:b,suggestions:k})}):g.jsx(zn,{className:" h-[calc(100vh-15rem)] px-4",children:g.jsx(ade,{messages:s,children:g.jsx(rde,{messages:s,isTyping:w})})})}),g.jsxs("div",{className:"flex flex-col mt-auto gap-2",children:[g.jsx(b$,{isPending:c||w,handleSubmit:m,children:({files:C,setFiles:T})=>g.jsx(hB,{value:a,onChange:h,files:C,setFiles:T,isGenerating:c,placeholder:"Enter your message..."})}),!i&&g.jsxs("div",{className:"flex items-center gap-1 text-sm text-mastra-el-5",children:[g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-purple-400",children:[g.jsx("circle",{cx:"12",cy:"12",r:"10"}),g.jsx("path",{d:"M12 16v-4"}),g.jsx("path",{d:"M12 8h.01"})]}),g.jsxs("span",{className:"text-xs text-gray-300/60",children:["Agent will not remember previous messages. To enable memory for agent see"," ",g.jsx("a",{href:"https://mastra.ai/docs/agents/01-agent-memory",target:"_blank",rel:"noopener",className:"text-gray-300/60 hover:text-gray-100 underline",children:"docs."})]})]})]})]})}function yA(t){const e=t+"CollectionProvider",[n,r]=Ii(e),[i,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:y,children:v}=m,w=ne.useRef(null),b=ne.useRef(new Map).current;return g.jsx(i,{scope:y,itemMap:b,collectionRef:w,children:v})};o.displayName=e;const a=t+"CollectionSlot",l=ne.forwardRef((m,y)=>{const{scope:v,children:w}=m,b=s(a,v),k=kt(y,b.collectionRef);return g.jsx(go,{ref:k,children:w})});l.displayName=a;const c=t+"CollectionItemSlot",u="data-radix-collection-item",d=ne.forwardRef((m,y)=>{const{scope:v,children:w,...b}=m,k=ne.useRef(null),C=kt(y,k),T=s(c,v);return ne.useEffect(()=>(T.itemMap.set(k,{ref:k,...b}),()=>void T.itemMap.delete(k))),g.jsx(go,{[u]:"",ref:C,children:w})});d.displayName=c;function h(m){const y=s(t+"CollectionConsumer",m);return ne.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((T,_)=>b.indexOf(T.ref.current)-b.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:l,ItemSlot:d},h,r]}var ude=vK.useId||(()=>{}),dde=0;function Vn(t){const[e,n]=S.useState(ude());return Mr(()=>{n(r=>r??String(dde++))},[t]),e?`radix-${e}`:""}function wo({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,i]=fde({defaultProp:e,onChange:n}),s=t!==void 0,o=s?t:r,a=Fn(n),l=S.useCallback(c=>{if(s){const d=typeof c=="function"?c(t):c;d!==t&&a(d)}else i(c)},[s,t,i,a]);return[o,l]}function fde({defaultProp:t,onChange:e}){const n=S.useState(t),[r]=n,i=S.useRef(r),s=Fn(e);return S.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}var ik="rovingFocusGroup.onEntryFocus",hde={bubbles:!1,cancelable:!0},gv="RovingFocusGroup",[aE,k$,pde]=yA(gv),[mde,yv]=Ii(gv,[pde]),[gde,yde]=mde(gv),S$=S.forwardRef((t,e)=>g.jsx(aE.Provider,{scope:t.__scopeRovingFocusGroup,children:g.jsx(aE.Slot,{scope:t.__scopeRovingFocusGroup,children:g.jsx(xde,{...t,ref:e})})}));S$.displayName=gv;var xde=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=t,h=S.useRef(null),m=kt(e,h),y=nm(s),[v=null,w]=wo({prop:o,defaultProp:a,onChange:l}),[b,k]=S.useState(!1),C=Fn(c),T=k$(n),_=S.useRef(!1),[A,M]=S.useState(0);return S.useEffect(()=>{const O=h.current;if(O)return O.addEventListener(ik,C),()=>O.removeEventListener(ik,C)},[C]),g.jsx(gde,{scope:n,orientation:r,dir:y,loop:i,currentTabStopId:v,onItemFocus:S.useCallback(O=>w(O),[w]),onItemShiftTab:S.useCallback(()=>k(!0),[]),onFocusableItemAdd:S.useCallback(()=>M(O=>O+1),[]),onFocusableItemRemove:S.useCallback(()=>M(O=>O-1),[]),children:g.jsx(Xe.div,{tabIndex:b||A===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...t.style},onMouseDown:Re(t.onMouseDown,()=>{_.current=!0}),onFocus:Re(t.onFocus,O=>{const D=!_.current;if(O.target===O.currentTarget&&D&&!b){const R=new CustomEvent(ik,hde);if(O.currentTarget.dispatchEvent(R),!R.defaultPrevented){const B=T().filter(V=>V.focusable),F=B.find(V=>V.active),W=B.find(V=>V.id===v),Y=[F,W,...B].filter(Boolean).map(V=>V.ref.current);T$(Y,u)}}_.current=!1}),onBlur:Re(t.onBlur,()=>k(!1))})})}),C$="RovingFocusGroupItem",E$=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,...o}=t,a=Vn(),l=s||a,c=yde(C$,n),u=c.currentTabStopId===l,d=k$(n),{onFocusableItemAdd:h,onFocusableItemRemove:m}=c;return S.useEffect(()=>{if(r)return h(),()=>m()},[r,h,m]),g.jsx(aE.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:g.jsx(Xe.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...o,ref:e,onMouseDown:Re(t.onMouseDown,y=>{r?c.onItemFocus(l):y.preventDefault()}),onFocus:Re(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Re(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){c.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const v=bde(y,c.orientation,c.dir);if(v!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let b=d().filter(k=>k.focusable).map(k=>k.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const k=b.indexOf(y.currentTarget);b=c.loop?kde(b,k+1):b.slice(k+1)}setTimeout(()=>T$(b))}})})})});E$.displayName=C$;var vde={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wde(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function bde(t,e,n){const r=wde(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vde[r]}function T$(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function kde(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var N$=S$,A$=E$,xA="Tabs",[Sde,f4e]=Ii(xA,[yv]),_$=yv(),[Cde,vA]=Sde(xA),M$=S.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:o="horizontal",dir:a,activationMode:l="automatic",...c}=t,u=nm(a),[d,h]=wo({prop:r,onChange:i,defaultProp:s});return g.jsx(Cde,{scope:n,baseId:Vn(),value:d,onValueChange:h,orientation:o,dir:u,activationMode:l,children:g.jsx(Xe.div,{dir:u,"data-orientation":o,...c,ref:e})})});M$.displayName=xA;var P$="TabsList",O$=S.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...i}=t,s=vA(P$,n),o=_$(n);return g.jsx(N$,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:r,children:g.jsx(Xe.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:e})})});O$.displayName=P$;var R$="TabsTrigger",D$=S.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=t,o=vA(R$,n),a=_$(n),l=L$(o.baseId,r),c=F$(o.baseId,r),u=r===o.value;return g.jsx(A$,{asChild:!0,...a,focusable:!i,active:u,children:g.jsx(Xe.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...s,ref:e,onMouseDown:Re(t.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?o.onValueChange(r):d.preventDefault()}),onKeyDown:Re(t.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&o.onValueChange(r)}),onFocus:Re(t.onFocus,()=>{const d=o.activationMode!=="manual";!u&&!i&&d&&o.onValueChange(r)})})})});D$.displayName=R$;var j$="TabsContent",I$=S.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...o}=t,a=vA(j$,n),l=L$(a.baseId,r),c=F$(a.baseId,r),u=r===a.value,d=S.useRef(u);return S.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),g.jsx(Rr,{present:i||u,children:({present:h})=>g.jsx(Xe.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:d.current?"0s":void 0},children:h&&s})})});I$.displayName=j$;function L$(t,e){return`${t}-trigger-${e}`}function F$(t,e){return`${t}-content-${e}`}var Ede=M$,B$=O$,$$=D$,z$=I$;const wA=Ede,xv=S.forwardRef(({className:t,...e},n)=>g.jsx(B$,{ref:n,className:ve(t),...e}));xv.displayName=B$.displayName;const ro=S.forwardRef(({className:t,...e},n)=>g.jsx($$,{ref:n,className:ve(t),...e}));ro.displayName=$$.displayName;const io=S.forwardRef(({className:t,...e},n)=>g.jsx(z$,{ref:n,className:ve("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));io.displayName=z$.displayName;function Tde({agentId:t}){var i;const{isLoading:e,agent:n}=$c(t),r=No();return e?g.jsx(zn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"}),g.jsx(qe,{className:"h-3"})]})]})]})}):g.jsx(zn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Name"}),g.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.name})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Instructions"}),g.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:n==null?void 0:n.instructions})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Model"}),g.jsx("p",{className:"text-mastra-el-5",children:n==null?void 0:n.modelId})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Provider"}),g.jsx("p",{className:"text-mastra-el-5",children:(i=n==null?void 0:n.provider)==null?void 0:i.split(".")[0].toUpperCase()})]}),g.jsxs("div",{className:"grid grid-cols-[100px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"Tools"}),g.jsx("div",{className:"flex flex-col gap-2 text-mastra-el-5",children:Object.entries((n==null?void 0:n.tools)??{}).map(([s,o])=>g.jsx("span",{onClick:()=>{r(`/tools/${t}/${o.id}`)},className:"no-underline",children:o.id},s))})]})]})})}function Nde({agentId:t}){return g.jsx(zn,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs w-[400px]",children:g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsx("p",{className:"text-mastra-el-5",children:"/api/agents"})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/evals/ci"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"GET"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/evals/live"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/instructions"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/generate"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/stream"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/text-object"]})]}),g.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[g.jsx("p",{className:"text-mastra-el-3",children:"POST"}),g.jsxs("p",{className:"text-mastra-el-5",children:["/api/agents/",t,"/stream-object"]})]})]})})}function Ade(t,e=globalThis==null?void 0:globalThis.document){const n=Fn(t);S.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var _de="DismissableLayer",lE="dismissableLayer.update",Mde="dismissableLayer.pointerDownOutside",Pde="dismissableLayer.focusOutside",hD,V$=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kd=S.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=t,c=S.useContext(V$),[u,d]=S.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=S.useState({}),y=kt(e,M=>d(M)),v=Array.from(c.layers),[w]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(w),k=u?v.indexOf(u):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,T=k>=b,_=Dde(M=>{const O=M.target,D=[...c.branches].some(R=>R.contains(O));!T||D||(i==null||i(M),o==null||o(M),M.defaultPrevented||a==null||a())},h),A=jde(M=>{const O=M.target;[...c.branches].some(R=>R.contains(O))||(s==null||s(M),o==null||o(M),M.defaultPrevented||a==null||a())},h);return Ade(M=>{k===c.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},h),S.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(hD=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),pD(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=hD)}},[u,h,n,c]),S.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),pD())},[u,c]),S.useEffect(()=>{const M=()=>m({});return document.addEventListener(lE,M),()=>document.removeEventListener(lE,M)},[]),g.jsx(Xe.div,{...l,ref:y,style:{pointerEvents:C?T?"auto":"none":void 0,...t.style},onFocusCapture:Re(t.onFocusCapture,A.onFocusCapture),onBlurCapture:Re(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Re(t.onPointerDownCapture,_.onPointerDownCapture)})});Kd.displayName=_de;var Ode="DismissableLayerBranch",Rde=S.forwardRef((t,e)=>{const n=S.useContext(V$),r=S.useRef(null),i=kt(e,r);return S.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Xe.div,{...t,ref:i})});Rde.displayName=Ode;function Dde(t,e=globalThis==null?void 0:globalThis.document){const n=Fn(t),r=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){W$(Mde,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function jde(t,e=globalThis==null?void 0:globalThis.document){const n=Fn(t),r=S.useRef(!1);return S.useEffect(()=>{const i=s=>{s.target&&!r.current&&W$(Pde,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pD(){const t=new CustomEvent(lE);document.dispatchEvent(t)}function W$(t,e,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?uF(i,s):i.dispatchEvent(s)}var sk="focusScope.autoFocusOnMount",ok="focusScope.autoFocusOnUnmount",mD={bubbles:!1,cancelable:!0},Ide="FocusScope",fm=S.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=S.useState(null),c=Fn(i),u=Fn(s),d=S.useRef(null),h=kt(e,v=>l(v)),m=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let v=function(C){if(m.paused||!a)return;const T=C.target;a.contains(T)?d.current=T:Ja(d.current,{select:!0})},w=function(C){if(m.paused||!a)return;const T=C.relatedTarget;T!==null&&(a.contains(T)||Ja(d.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const _ of C)_.removedNodes.length>0&&Ja(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const k=new MutationObserver(b);return a&&k.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),k.disconnect()}}},[r,a,m.paused]),S.useEffect(()=>{if(a){yD.add(m);const v=document.activeElement;if(!a.contains(v)){const b=new CustomEvent(sk,mD);a.addEventListener(sk,c),a.dispatchEvent(b),b.defaultPrevented||(Lde(Vde(H$(a)),{select:!0}),document.activeElement===v&&Ja(a))}return()=>{a.removeEventListener(sk,c),setTimeout(()=>{const b=new CustomEvent(ok,mD);a.addEventListener(ok,u),a.dispatchEvent(b),b.defaultPrevented||Ja(v??document.body,{select:!0}),a.removeEventListener(ok,u),yD.remove(m)},0)}}},[a,c,u,m]);const y=S.useCallback(v=>{if(!n&&!r||m.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(w&&b){const k=v.currentTarget,[C,T]=Fde(k);C&&T?!v.shiftKey&&b===T?(v.preventDefault(),n&&Ja(C,{select:!0})):v.shiftKey&&b===C&&(v.preventDefault(),n&&Ja(T,{select:!0})):b===k&&v.preventDefault()}},[n,r,m.paused]);return g.jsx(Xe.div,{tabIndex:-1,...o,ref:h,onKeyDown:y})});fm.displayName=Ide;function Lde(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Ja(r,{select:e}),document.activeElement!==n)return}function Fde(t){const e=H$(t),n=gD(e,t),r=gD(e.reverse(),t);return[n,r]}function H$(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function gD(t,e){for(const n of t)if(!Bde(n,{upTo:e}))return n}function Bde(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function $de(t){return t instanceof HTMLInputElement&&"select"in t}function Ja(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&$de(t)&&e&&t.select()}}var yD=zde();function zde(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=xD(t,e),t.unshift(e)},remove(e){var n;t=xD(t,e),(n=t[0])==null||n.resume()}}}function xD(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function Vde(t){return t.filter(e=>e.tagName!=="A")}var Wde="Portal",hm=S.forwardRef((t,e)=>{var a;const{container:n,...r}=t,[i,s]=S.useState(!1);Mr(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?X3.createPortal(g.jsx(Xe.div,{...r,ref:e}),o):null});hm.displayName=Wde;var ak=0;function vv(){S.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??vD()),document.body.insertAdjacentElement("beforeend",t[1]??vD()),ak++,()=>{ak===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ak--}},[])}function vD(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Qs=function(){return Qs=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Qs.apply(this,arguments)};function U$(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Hde(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var r0="right-scroll-bar-position",i0="width-before-scroll-bar",Ude="with-scroll-bars-hidden",qde="--removed-body-scroll-bar-size";function lk(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Yde(t,e){var n=S.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=e,n.facade}var Gde=typeof window<"u"?S.useLayoutEffect:S.useEffect,wD=new WeakMap;function Kde(t,e){var n=Yde(null,function(r){return t.forEach(function(i){return lk(i,r)})});return Gde(function(){var r=wD.get(n);if(r){var i=new Set(r),s=new Set(t),o=n.current;i.forEach(function(a){s.has(a)||lk(a,null)}),s.forEach(function(a){i.has(a)||lk(a,o)})}wD.set(n,t)},[t]),n}function Zde(t){return t}function Xde(t,e){e===void 0&&(e=Zde);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(s){var o=e(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var u=o;o=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),n}}}};return i}function Qde(t){t===void 0&&(t={});var e=Xde(null);return e.options=Qs({async:!0,ssr:!1},t),e}var q$=function(t){var e=t.sideCar,n=U$(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Qs({},n))};q$.isSideCarExport=!0;function Jde(t,e){return t.useMedium(e),q$}var Y$=Qde(),ck=function(){},wv=S.forwardRef(function(t,e){var n=S.useRef(null),r=S.useState({onScrollCapture:ck,onWheelCapture:ck,onTouchMoveCapture:ck}),i=r[0],s=r[1],o=t.forwardProps,a=t.children,l=t.className,c=t.removeScrollBar,u=t.enabled,d=t.shards,h=t.sideCar,m=t.noIsolation,y=t.inert,v=t.allowPinchZoom,w=t.as,b=w===void 0?"div":w,k=t.gapMode,C=U$(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=h,_=Kde([n,e]),A=Qs(Qs({},C),i);return S.createElement(S.Fragment,null,u&&S.createElement(T,{sideCar:Y$,removeScrollBar:c,shards:d,noIsolation:m,inert:y,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:k}),o?S.cloneElement(S.Children.only(a),Qs(Qs({},A),{ref:_})):S.createElement(b,Qs({},A,{className:l,ref:_}),a))});wv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wv.classNames={fullWidth:i0,zeroRight:r0};var efe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tfe(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=efe();return e&&t.setAttribute("nonce",e),t}function nfe(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function rfe(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var ife=function(){var t=0,e=null;return{add:function(n){t==0&&(e=tfe())&&(nfe(e,n),rfe(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},sfe=function(){var t=ife();return function(e,n){S.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},G$=function(){var t=sfe(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},ofe={left:0,top:0,right:0,gap:0},uk=function(t){return parseInt(t||"",10)||0},afe=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[uk(n),uk(r),uk(i)]},lfe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return ofe;var e=afe(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},cfe=G$(),Gu="data-scroll-locked",ufe=function(t,e,n,r){var i=t.left,s=t.top,o=t.right,a=t.gap;return n===void 0&&(n="margin"),`
|
|
289
289
|
.`.concat(Ude,` {
|
|
290
290
|
overflow: hidden `).concat(r,`;
|
|
291
291
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var qt=Object.defineProperty;var zt=(i,e,t)=>e in i?qt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>zt(i,typeof e!="symbol"?e+"":e,t);import{_ as l,w as Me,s as dt,f as Jt,a as Kt,b as Qt,c as Je,h as Xt}from"./index-BDBEhVq2.js";const Ke={}.hasOwnProperty;function Yt(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const c=r.handlers;if(n&&Ke.call(n,i)){const a=String(n[i]);o=Ke.call(c,a)?c[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const pt=[{id:"abap",name:"ABAP",import:()=>l(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>l(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>l(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>l(()=>import("./angular-html-LfdN0zeE.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>l(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>l(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>l(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>l(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>l(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>l(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>l(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>l(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>l(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>l(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>l(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>l(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>l(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>l(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>l(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>l(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>l(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>l(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>l(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>l(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>l(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>l(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>l(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>l(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>l(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>l(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>l(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>l(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>l(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>l(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>l(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>l(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>l(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>l(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>l(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>l(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>l(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>l(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>l(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>l(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>l(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>l(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>l(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>l(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>l(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>l(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>l(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>l(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>l(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>l(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>l(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>l(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>l(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>l(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>l(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>l(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>l(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>l(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>l(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>l(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>l(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>l(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>l(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>l(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>l(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>l(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>l(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>l(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>l(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>l(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>l(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>l(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>l(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>l(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>l(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>l(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>l(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>l(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>l(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>l(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>l(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>l(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>l(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>l(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>l(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>l(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>l(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>l(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>l(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>l(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>l(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>l(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>l(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>l(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>l(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>l(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>l(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>l(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>l(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>l(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>l(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>l(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>l(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>l(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>l(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>l(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>l(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>l(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>l(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>l(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>l(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>l(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>l(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>l(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>l(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>l(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>l(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>l(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>l(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>l(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>l(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>l(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>l(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>l(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>l(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>l(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>l(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>l(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>l(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>l(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>l(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>l(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>l(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>l(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>l(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>l(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>l(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>l(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>l(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>l(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>l(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>l(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>l(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>l(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>l(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>l(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>l(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>l(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>l(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>l(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>l(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>l(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>l(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>l(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>l(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>l(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>l(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>l(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>l(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>l(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>l(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>l(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>l(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>l(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>l(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>l(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>l(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>l(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>l(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>l(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>l(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>l(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>l(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>l(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>l(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>l(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>l(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>l(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>l(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>l(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>l(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>l(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>l(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>l(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>l(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>l(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>l(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>l(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>l(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>l(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>l(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>l(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>l(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>l(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>l(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>l(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>l(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>l(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>l(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>l(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>l(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>l(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>l(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>l(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>l(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>l(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>l(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>l(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>l(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>l(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>l(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>l(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>l(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>l(()=>import("./zig-BVz_zdnA.js"),[])}],Zt=Object.fromEntries(pt.map(i=>[i.id,i.import])),er=Object.fromEntries(pt.flatMap(i=>{var e;return((e=i.aliases)==null?void 0:e.map(t=>[t,i.import]))||[]})),tr={...Zt,...er},rr=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],ir=Object.fromEntries(rr.map(i=>[i.id,i.import]));let B=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Be=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function nr(){return 2147483648}function sr(){return typeof performance<"u"?performance.now():Date.now()}const or=(i,e)=>i+(e-i%e)%e;async function ar(i){let e,t;const r={};function n(d){t=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}function s(d,f,T){r.HEAPU8.copyWithin(d,f,f+T)}function o(d){try{return e.grow(d-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function c(d){const f=r.HEAPU8.length;d=d>>>0;const T=nr();if(d>T)return!1;for(let E=1;E<=4;E*=2){let g=f*(1+.2/E);g=Math.min(g,d+100663296);const y=Math.min(T,or(Math.max(d,g),65536));if(o(y))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,f,T=1024){const E=f+T;let g=f;for(;d[g]&&!(g>=E);)++g;if(g-f>16&&d.buffer&&a)return a.decode(d.subarray(f,g));let y="";for(;f<g;){let R=d[f++];if(!(R&128)){y+=String.fromCharCode(R);continue}const A=d[f++]&63;if((R&224)===192){y+=String.fromCharCode((R&31)<<6|A);continue}const v=d[f++]&63;if((R&240)===224?R=(R&15)<<12|A<<6|v:R=(R&7)<<18|A<<12|v<<6|d[f++]&63,R<65536)y+=String.fromCharCode(R);else{const w=R-65536;y+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return y}function m(d,f){return d?u(r.HEAPU8,d,f):""}const h={emscripten_get_now:sr,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function p(){const f=await i({env:h,wasi_snapshot_preview1:h});e=f.memory,n(e.buffer),Object.assign(r,f),r.UTF8ToString=m}return await p(),r}var cr=Object.defineProperty,lr=(i,e,t)=>e in i?cr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,P=(i,e,t)=>(lr(i,typeof e!="symbol"?e+"":e,t),t);let I=null;function ur(i){throw new Be(i.UTF8ToString(i.getLastOnigError()))}class ye{constructor(e){P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16Value"),P(this,"utf8Value"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16");const t=e.length,r=ye._utf8ByteLength(e),n=r!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=r);const o=n?new Uint32Array(r+1):null;n&&(o[r]=t);const c=new Uint8Array(r);let a=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let h=m,p=!1;if(m>=55296&&m<=56319&&u+1<t){const d=e.charCodeAt(u+1);d>=56320&&d<=57343&&(h=(m-55296<<10)+65536|d-56320,p=!0)}n&&(s[u]=a,p&&(s[u+1]=a),h<=127?o[a+0]=u:h<=2047?(o[a+0]=u,o[a+1]=u):h<=65535?(o[a+0]=u,o[a+1]=u,o[a+2]=u):(o[a+0]=u,o[a+1]=u,o[a+2]=u,o[a+3]=u)),h<=127?c[a++]=h:h<=2047?(c[a++]=192|(h&1984)>>>6,c[a++]=128|(h&63)>>>0):h<=65535?(c[a++]=224|(h&61440)>>>12,c[a++]=128|(h&4032)>>>6,c[a++]=128|(h&63)>>>0):(c[a++]=240|(h&1835008)>>>18,c[a++]=128|(h&258048)>>>12,c[a++]=128|(h&4032)>>>6,c[a++]=128|(h&63)>>>0),p&&u++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){const s=e.charCodeAt(r);let o=s,c=!1;if(s>=55296&&s<=56319&&r+1<n){const a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(o=(s-55296<<10)+65536|a-56320,c=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,c&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const D=class{constructor(i){if(P(this,"id",++D.LAST_ID),P(this,"_onigBinding"),P(this,"content"),P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16"),P(this,"ptr"),!I)throw new Be("Must invoke loadWasm first.");this._onigBinding=I,this.content=i;const e=new ye(i);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!D._sharedPtrInUse?(D._sharedPtr||(D._sharedPtr=I.omalloc(1e4)),D._sharedPtrInUse=!0,I.HEAPU8.set(e.utf8Value,D._sharedPtr),this.ptr=D._sharedPtr):this.ptr=e.createString(I)}convertUtf8OffsetToUtf16(i){return this.utf8OffsetToUtf16?i<0?0:i>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[i]:i}convertUtf16OffsetToUtf8(i){return this.utf16OffsetToUtf8?i<0?0:i>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[i]:i}dispose(){this.ptr===D._sharedPtr?D._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let ee=D;P(ee,"LAST_ID",0);P(ee,"_sharedPtr",0);P(ee,"_sharedPtrInUse",!1);class mr{constructor(e){if(P(this,"_onigBinding"),P(this,"_ptr"),!I)throw new Be("Must invoke loadWasm first.");const t=[],r=[];for(let c=0,a=e.length;c<a;c++){const u=new ye(e[c]);t[c]=u.createString(I),r[c]=u.utf8Length}const n=I.omalloc(4*e.length);I.HEAPU32.set(t,n/4);const s=I.omalloc(4*e.length);I.HEAPU32.set(r,s/4);const o=I.createOnigScanner(n,s,e.length);for(let c=0,a=e.length;c<a;c++)I.ofree(t[c]);I.ofree(s),I.ofree(n),o===0&&ur(I),this._onigBinding=I,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if(typeof r=="number"&&(n=r),typeof e=="string"){e=new ee(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(o===0)return null;const c=s.HEAPU32;let a=o/4;const u=c[a++],m=c[a++],h=[];for(let p=0;p<m;p++){const d=e.convertUtf8OffsetToUtf16(c[a++]),f=e.convertUtf8OffsetToUtf16(c[a++]);h[p]={start:d,end:f,length:f-d}}return{index:u,captureIndices:h}}}function hr(i){return typeof i.instantiator=="function"}function dr(i){return typeof i.default=="function"}function pr(i){return typeof i.data<"u"}function _r(i){return typeof Response<"u"&&i instanceof Response}function fr(i){var e;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let ie;function gr(i){if(ie)return ie;async function e(){I=await ar(async t=>{let r=i;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),hr(r)?r=await r.instantiator(t):dr(r)?r=await r.default(t):(pr(r)&&(r=r.data),_r(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Er(r)(t):r=await yr(r)(t):fr(r)?r=await Le(r)(t):r instanceof WebAssembly.Module?r=await Le(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Le(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ie=e(),ie}function Le(i){return e=>WebAssembly.instantiate(i,e)}function Er(i){return e=>WebAssembly.instantiateStreaming(i,e)}function yr(i){return async e=>{const t=await i.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Rr;function Tr(){return Rr}async function _t(i){return i&&await gr(i),{createScanner(e){return new mr(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new ee(e)}}}function Ar(i){return je(i)}function je(i){return Array.isArray(i)?vr(i):i instanceof RegExp?i:typeof i=="object"?Lr(i):i}function vr(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=je(i[t]);return e}function Lr(i){let e={};for(let t in i)e[t]=je(i[t]);return e}function ft(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function gt(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?gt(i.substring(0,i.length-1)):i.substr(~e+1)}var Pe=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(Pe.lastIndex=0,Pe.test(i))}static replaceCaptures(i,e,t){return i.replace(Pe,(r,n,s,o)=>{let c=t[parseInt(n||s,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function Et(i,e){return i<e?-1:i>e?1:0}function yt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=Et(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Qe(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Tt=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},le=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new Tt(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(Ir(i),e)}static createFromParsedTheme(i,e){return Or(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>Pr(i.parent,n.parentScopes));return r?new At(r.fontStyle,r.foreground,r.background):null}},be=class ae{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ae(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ae(t,e[r]);return t}push(e){return new ae(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function Pr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!br(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function br(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var At=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function Ir(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let h=o.settings.fontStyle.split(" ");for(let p=0,d=h.length;p<d;p++)switch(h[p]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Qe(o.settings.foreground)&&(u=o.settings.foreground);let m=null;typeof o.settings.background=="string"&&Qe(o.settings.background)&&(m=o.settings.background);for(let h=0,p=c.length;h<p;h++){let f=c[h].trim().split(" "),T=f[f.length-1],E=null;f.length>1&&(E=f.slice(0,f.length-1),E.reverse()),t[r++]=new Sr(T,E,n,a,u,m)}}return t}var Sr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},M=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(M||{});function Or(i,e){i.sort((a,u)=>{let m=Et(a.scope,u.scope);return m!==0||(m=yt(a.parentScopes,u.parentScopes),m!==0)?m:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new wr(e),o=new At(t,s.getId(r),s.getId(n)),c=new kr(new Ce(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let m=i[a];c.insert(0,m.scope,m.parentScopes,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new le(s,o,c)}var wr=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},Cr=Object.freeze([]),Ce=class vt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||Cr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new vt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},kr=class ke{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(ke._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let c=t.indexOf("."),a,u;c===-1?(a=t,u=""):(a=t.substring(0,c),u=t.substring(c+1));let m;this._children.hasOwnProperty(a)?m=this._children[a]:(m=new ke(this._mainRule.clone(),Ce.cloneArr(this._rulesWithParentScopes)),this._children[a]=m),m.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let a=this._rulesWithParentScopes[o];if(yt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Ce(e,t,r,n,s))}},H=class C{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=C.getLanguageId(e),r=C.getTokenType(e),n=C.getFontStyle(e),s=C.getForeground(e),o=C.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,c){let a=C.getLanguageId(e),u=C.getTokenType(e),m=C.containsBalancedBrackets(e)?1:0,h=C.getFontStyle(e),p=C.getForeground(e),d=C.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(m=n?1:0),s!==-1&&(h=s),o!==0&&(p=o),c!==0&&(d=c),(a<<0|u<<8|m<<10|h<<11|p<<15|d<<24)>>>0}};function ue(i,e){const t=[],r=Dr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=c();return n===")"&&(n=r.next()),a}if(Xe(n)){const a=[];do a.push(n),n=r.next();while(Xe(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return m=>a.every(h=>h(m))}function c(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return m=>a.some(h=>h(m))}}function Xe(i){return!!i&&!!i.match(/[\w\.:]+/)}function Dr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function Lt(i){typeof i.dispose=="function"&&i.dispose()}var Q=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},Nr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Vr=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},xr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Q(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new Vr;for(const t of i)Gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Q?ce({baseGrammar:s,selfGrammar:n},r):De(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const c of o)r.add(new Q(c))}function De(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];me([r],e,t)}}function ce(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&me(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&me(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function me(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?ft({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&me(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:ce({...e,selfGrammar:e.baseGrammar},t);break;case 1:ce(e,t);break;case 2:De(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const c=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:n};o.kind===4?De(o.ruleName,a,t):ce(a,t)}else o.kind===4?t.add(new Nr(o.scopeName,o.ruleName)):t.add(new Q(o.scopeName));break}}}var Mr=class{constructor(){_(this,"kind",0)}},Br=class{constructor(){_(this,"kind",1)}},jr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},$r=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Wr=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Mr;if(i==="$self")return new Br;const e=i.indexOf("#");if(e===-1)return new $r(i);if(e===0)return new jr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Wr(t,r)}}var Ur=/\\(\d+)/,Ye=/\\(\d+)/g,Hr=-1,bt=-2;var te=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${gt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},Fr=class extends te{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},qr=class extends te{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new X(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ze=class extends te{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ne=class extends te{constructor(e,t,r,n,s,o,c,a,u,m){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new X(s,this.id),this.beginCaptures=o,this._end=new X(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends te{constructor(e,t,r,n,s,o,c,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new X(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new X(c,bt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},It=class S{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new Fr(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new qr(e.$vscodeTextmateLocation,e.id,e.name,e.match,S._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=ft({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Ze(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,S._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,S._compileCaptures(e.whileCaptures||e.captures,t,r),S._compilePatterns(e.patterns,t,r)):new Ne(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,S._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,S._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>s&&(s=c)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let a=0;e[o].patterns&&(a=S.getCompiledRuleId(e[o],t,r)),n[c]=S.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const c=e[s];let a=-1;if(c.include){const u=Pt(c.include);switch(u.kind){case 0:case 1:a=S.getCompiledRuleId(r[c.include],t,r);break;case 2:let m=r[u.ruleName];m&&(a=S.getCompiledRuleId(m,t,r));break;case 3:case 4:const h=u.scopeName,p=u.kind===4?u.ruleName:null,d=t.getExternalGrammar(h,r);if(d)if(p){let f=d.repository[p];f&&(a=S.getCompiledRuleId(f,t,d.repository))}else a=S.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else a=S.getCompiledRuleId(c,t,r);if(a!==-1){const u=t.getRule(a);let m=!1;if((u instanceof Ze||u instanceof Ne||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},X=class St{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let c=0;c<r;c++)if(e.charAt(c)==="\\"&&c+1<r){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(n,c)),s.push("$(?!\\n)(?<!\\n)"),n=c+2):(u==="A"||u==="G")&&(o=!0),c++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Ur.test(this.source):this.hasBackReferences=!1}clone(){return new St(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return Ye.lastIndex=0,this.source.replace(Ye,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,c,a;for(s=0,o=this.source.length;s<o;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,r[s]=c,n[s]=c,c==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Y=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new et(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new et(i,r,this._items.map(n=>n.ruleId))}},et=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
2
|
+
var qt=Object.defineProperty;var zt=(i,e,t)=>e in i?qt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>zt(i,typeof e!="symbol"?e+"":e,t);import{_ as l,w as Me,s as dt,f as Jt,a as Kt,b as Qt,c as Je,h as Xt}from"./index-BohqOATi.js";const Ke={}.hasOwnProperty;function Yt(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const c=r.handlers;if(n&&Ke.call(n,i)){const a=String(n[i]);o=Ke.call(c,a)?c[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const pt=[{id:"abap",name:"ABAP",import:()=>l(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>l(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>l(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>l(()=>import("./angular-html-LfdN0zeE.js").then(i=>i.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>l(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>l(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>l(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>l(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>l(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>l(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>l(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>l(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>l(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>l(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>l(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>l(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>l(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>l(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>l(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>l(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>l(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>l(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>l(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>l(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>l(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>l(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>l(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>l(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>l(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>l(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>l(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>l(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>l(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>l(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>l(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>l(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>l(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>l(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>l(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>l(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>l(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>l(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>l(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>l(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>l(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>l(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>l(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>l(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>l(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>l(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>l(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>l(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>l(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>l(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>l(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>l(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>l(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>l(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>l(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>l(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>l(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>l(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>l(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>l(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>l(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>l(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>l(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>l(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>l(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>l(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>l(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>l(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>l(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>l(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>l(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>l(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>l(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>l(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>l(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>l(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>l(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>l(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>l(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>l(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>l(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>l(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>l(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>l(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>l(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>l(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>l(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>l(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>l(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>l(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>l(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>l(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>l(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>l(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>l(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>l(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>l(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>l(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>l(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>l(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>l(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>l(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>l(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>l(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>l(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>l(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>l(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>l(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>l(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>l(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>l(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>l(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>l(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>l(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>l(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>l(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>l(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>l(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>l(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>l(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>l(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>l(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>l(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>l(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>l(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>l(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>l(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>l(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>l(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>l(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>l(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>l(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>l(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>l(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>l(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>l(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>l(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>l(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>l(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>l(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>l(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>l(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>l(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>l(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>l(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>l(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>l(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>l(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>l(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>l(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>l(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>l(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>l(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>l(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>l(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>l(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>l(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>l(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>l(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>l(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>l(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>l(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>l(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>l(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>l(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>l(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>l(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>l(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>l(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>l(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>l(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>l(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>l(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>l(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>l(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>l(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>l(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>l(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>l(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>l(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>l(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>l(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>l(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>l(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>l(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>l(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>l(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>l(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>l(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>l(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>l(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>l(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>l(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>l(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>l(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>l(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>l(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>l(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>l(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>l(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>l(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>l(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>l(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>l(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>l(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>l(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>l(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>l(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>l(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>l(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>l(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>l(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>l(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>l(()=>import("./zig-BVz_zdnA.js"),[])}],Zt=Object.fromEntries(pt.map(i=>[i.id,i.import])),er=Object.fromEntries(pt.flatMap(i=>{var e;return((e=i.aliases)==null?void 0:e.map(t=>[t,i.import]))||[]})),tr={...Zt,...er},rr=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>l(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>l(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>l(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>l(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>l(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>l(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>l(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>l(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>l(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>l(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>l(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>l(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>l(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>l(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>l(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>l(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>l(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>l(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>l(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>l(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>l(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>l(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>l(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>l(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>l(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>l(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>l(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>l(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>l(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>l(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>l(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>l(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>l(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>l(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>l(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>l(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>l(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>l(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>l(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>l(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>l(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>l(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>l(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>l(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>l(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>l(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>l(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>l(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>l(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>l(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>l(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>l(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>l(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>l(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],ir=Object.fromEntries(rr.map(i=>[i.id,i.import]));let B=class extends Error{constructor(e){super(e),this.name="ShikiError"}},Be=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function nr(){return 2147483648}function sr(){return typeof performance<"u"?performance.now():Date.now()}const or=(i,e)=>i+(e-i%e)%e;async function ar(i){let e,t;const r={};function n(d){t=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}function s(d,f,T){r.HEAPU8.copyWithin(d,f,f+T)}function o(d){try{return e.grow(d-t.byteLength+65535>>>16),n(e.buffer),1}catch{}}function c(d){const f=r.HEAPU8.length;d=d>>>0;const T=nr();if(d>T)return!1;for(let E=1;E<=4;E*=2){let g=f*(1+.2/E);g=Math.min(g,d+100663296);const y=Math.min(T,or(Math.max(d,g),65536));if(o(y))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,f,T=1024){const E=f+T;let g=f;for(;d[g]&&!(g>=E);)++g;if(g-f>16&&d.buffer&&a)return a.decode(d.subarray(f,g));let y="";for(;f<g;){let R=d[f++];if(!(R&128)){y+=String.fromCharCode(R);continue}const A=d[f++]&63;if((R&224)===192){y+=String.fromCharCode((R&31)<<6|A);continue}const v=d[f++]&63;if((R&240)===224?R=(R&15)<<12|A<<6|v:R=(R&7)<<18|A<<12|v<<6|d[f++]&63,R<65536)y+=String.fromCharCode(R);else{const w=R-65536;y+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return y}function m(d,f){return d?u(r.HEAPU8,d,f):""}const h={emscripten_get_now:sr,emscripten_memcpy_big:s,emscripten_resize_heap:c,fd_write:()=>0};async function p(){const f=await i({env:h,wasi_snapshot_preview1:h});e=f.memory,n(e.buffer),Object.assign(r,f),r.UTF8ToString=m}return await p(),r}var cr=Object.defineProperty,lr=(i,e,t)=>e in i?cr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,P=(i,e,t)=>(lr(i,typeof e!="symbol"?e+"":e,t),t);let I=null;function ur(i){throw new Be(i.UTF8ToString(i.getLastOnigError()))}class ye{constructor(e){P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16Value"),P(this,"utf8Value"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16");const t=e.length,r=ye._utf8ByteLength(e),n=r!==t,s=n?new Uint32Array(t+1):null;n&&(s[t]=r);const o=n?new Uint32Array(r+1):null;n&&(o[r]=t);const c=new Uint8Array(r);let a=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let h=m,p=!1;if(m>=55296&&m<=56319&&u+1<t){const d=e.charCodeAt(u+1);d>=56320&&d<=57343&&(h=(m-55296<<10)+65536|d-56320,p=!0)}n&&(s[u]=a,p&&(s[u+1]=a),h<=127?o[a+0]=u:h<=2047?(o[a+0]=u,o[a+1]=u):h<=65535?(o[a+0]=u,o[a+1]=u,o[a+2]=u):(o[a+0]=u,o[a+1]=u,o[a+2]=u,o[a+3]=u)),h<=127?c[a++]=h:h<=2047?(c[a++]=192|(h&1984)>>>6,c[a++]=128|(h&63)>>>0):h<=65535?(c[a++]=224|(h&61440)>>>12,c[a++]=128|(h&4032)>>>6,c[a++]=128|(h&63)>>>0):(c[a++]=240|(h&1835008)>>>18,c[a++]=128|(h&258048)>>>12,c[a++]=128|(h&4032)>>>6,c[a++]=128|(h&63)>>>0),p&&u++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){const s=e.charCodeAt(r);let o=s,c=!1;if(s>=55296&&s<=56319&&r+1<n){const a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(o=(s-55296<<10)+65536|a-56320,c=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,c&&r++}return t}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const D=class{constructor(i){if(P(this,"id",++D.LAST_ID),P(this,"_onigBinding"),P(this,"content"),P(this,"utf16Length"),P(this,"utf8Length"),P(this,"utf16OffsetToUtf8"),P(this,"utf8OffsetToUtf16"),P(this,"ptr"),!I)throw new Be("Must invoke loadWasm first.");this._onigBinding=I,this.content=i;const e=new ye(i);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!D._sharedPtrInUse?(D._sharedPtr||(D._sharedPtr=I.omalloc(1e4)),D._sharedPtrInUse=!0,I.HEAPU8.set(e.utf8Value,D._sharedPtr),this.ptr=D._sharedPtr):this.ptr=e.createString(I)}convertUtf8OffsetToUtf16(i){return this.utf8OffsetToUtf16?i<0?0:i>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[i]:i}convertUtf16OffsetToUtf8(i){return this.utf16OffsetToUtf8?i<0?0:i>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[i]:i}dispose(){this.ptr===D._sharedPtr?D._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let ee=D;P(ee,"LAST_ID",0);P(ee,"_sharedPtr",0);P(ee,"_sharedPtrInUse",!1);class mr{constructor(e){if(P(this,"_onigBinding"),P(this,"_ptr"),!I)throw new Be("Must invoke loadWasm first.");const t=[],r=[];for(let c=0,a=e.length;c<a;c++){const u=new ye(e[c]);t[c]=u.createString(I),r[c]=u.utf8Length}const n=I.omalloc(4*e.length);I.HEAPU32.set(t,n/4);const s=I.omalloc(4*e.length);I.HEAPU32.set(r,s/4);const o=I.createOnigScanner(n,s,e.length);for(let c=0,a=e.length;c<a;c++)I.ofree(t[c]);I.ofree(s),I.ofree(n),o===0&&ur(I),this._onigBinding=I,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if(typeof r=="number"&&(n=r),typeof e=="string"){e=new ee(e);const s=this._findNextMatchSync(e,t,!1,n);return e.dispose(),s}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(o===0)return null;const c=s.HEAPU32;let a=o/4;const u=c[a++],m=c[a++],h=[];for(let p=0;p<m;p++){const d=e.convertUtf8OffsetToUtf16(c[a++]),f=e.convertUtf8OffsetToUtf16(c[a++]);h[p]={start:d,end:f,length:f-d}}return{index:u,captureIndices:h}}}function hr(i){return typeof i.instantiator=="function"}function dr(i){return typeof i.default=="function"}function pr(i){return typeof i.data<"u"}function _r(i){return typeof Response<"u"&&i instanceof Response}function fr(i){var e;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((e=Buffer.isBuffer)==null?void 0:e.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array}let ie;function gr(i){if(ie)return ie;async function e(){I=await ar(async t=>{let r=i;return r=await r,typeof r=="function"&&(r=await r(t)),typeof r=="function"&&(r=await r(t)),hr(r)?r=await r.instantiator(t):dr(r)?r=await r.default(t):(pr(r)&&(r=r.data),_r(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Er(r)(t):r=await yr(r)(t):fr(r)?r=await Le(r)(t):r instanceof WebAssembly.Module?r=await Le(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Le(r.default)(t))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return ie=e(),ie}function Le(i){return e=>WebAssembly.instantiate(i,e)}function Er(i){return e=>WebAssembly.instantiateStreaming(i,e)}function yr(i){return async e=>{const t=await i.arrayBuffer();return WebAssembly.instantiate(t,e)}}let Rr;function Tr(){return Rr}async function _t(i){return i&&await gr(i),{createScanner(e){return new mr(e.map(t=>typeof t=="string"?t:t.source))},createString(e){return new ee(e)}}}function Ar(i){return je(i)}function je(i){return Array.isArray(i)?vr(i):i instanceof RegExp?i:typeof i=="object"?Lr(i):i}function vr(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=je(i[t]);return e}function Lr(i){let e={};for(let t in i)e[t]=je(i[t]);return e}function ft(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function gt(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?gt(i.substring(0,i.length-1)):i.substr(~e+1)}var Pe=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(Pe.lastIndex=0,Pe.test(i))}static replaceCaptures(i,e,t){return i.replace(Pe,(r,n,s,o)=>{let c=t[parseInt(n||s,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function Et(i,e){return i<e?-1:i>e?1:0}function yt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=Et(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Qe(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Tt=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},le=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new Tt(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(Ir(i),e)}static createFromParsedTheme(i,e){return Or(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>Pr(i.parent,n.parentScopes));return r?new At(r.fontStyle,r.foreground,r.background):null}},be=class ae{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ae(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ae(t,e[r]);return t}push(e){return new ae(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function Pr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!br(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function br(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var At=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function Ir(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let h=o.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),c=h.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let h=o.settings.fontStyle.split(" ");for(let p=0,d=h.length;p<d;p++)switch(h[p]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Qe(o.settings.foreground)&&(u=o.settings.foreground);let m=null;typeof o.settings.background=="string"&&Qe(o.settings.background)&&(m=o.settings.background);for(let h=0,p=c.length;h<p;h++){let f=c[h].trim().split(" "),T=f[f.length-1],E=null;f.length>1&&(E=f.slice(0,f.length-1),E.reverse()),t[r++]=new Sr(T,E,n,a,u,m)}}return t}var Sr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},M=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(M||{});function Or(i,e){i.sort((a,u)=>{let m=Et(a.scope,u.scope);return m!==0||(m=yt(a.parentScopes,u.parentScopes),m!==0)?m:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new wr(e),o=new At(t,s.getId(r),s.getId(n)),c=new kr(new Ce(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let m=i[a];c.insert(0,m.scope,m.parentScopes,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new le(s,o,c)}var wr=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},Cr=Object.freeze([]),Ce=class vt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||Cr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new vt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},kr=class ke{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(ke._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let c=t.indexOf("."),a,u;c===-1?(a=t,u=""):(a=t.substring(0,c),u=t.substring(c+1));let m;this._children.hasOwnProperty(a)?m=this._children[a]:(m=new ke(this._mainRule.clone(),Ce.cloneArr(this._rulesWithParentScopes)),this._children[a]=m),m.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let a=this._rulesWithParentScopes[o];if(yt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Ce(e,t,r,n,s))}},H=class C{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=C.getLanguageId(e),r=C.getTokenType(e),n=C.getFontStyle(e),s=C.getForeground(e),o=C.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,c){let a=C.getLanguageId(e),u=C.getTokenType(e),m=C.containsBalancedBrackets(e)?1:0,h=C.getFontStyle(e),p=C.getForeground(e),d=C.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(m=n?1:0),s!==-1&&(h=s),o!==0&&(p=o),c!==0&&(d=c),(a<<0|u<<8|m<<10|h<<11|p<<15|d<<24)>>>0}};function ue(i,e){const t=[],r=Dr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=c();return n===")"&&(n=r.next()),a}if(Xe(n)){const a=[];do a.push(n),n=r.next();while(Xe(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return m=>a.every(h=>h(m))}function c(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return m=>a.some(h=>h(m))}}function Xe(i){return!!i&&!!i.match(/[\w\.:]+/)}function Dr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function Lt(i){typeof i.dispose=="function"&&i.dispose()}var Q=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},Nr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Vr=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},xr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Q(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new Vr;for(const t of i)Gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Q){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function Gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Q?ce({baseGrammar:s,selfGrammar:n},r):De(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const c of o)r.add(new Q(c))}function De(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];me([r],e,t)}}function ce(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&me(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&me(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function me(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?ft({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&me(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:ce({...e,selfGrammar:e.baseGrammar},t);break;case 1:ce(e,t);break;case 2:De(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const c=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:n};o.kind===4?De(o.ruleName,a,t):ce(a,t)}else o.kind===4?t.add(new Nr(o.scopeName,o.ruleName)):t.add(new Q(o.scopeName));break}}}var Mr=class{constructor(){_(this,"kind",0)}},Br=class{constructor(){_(this,"kind",1)}},jr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},$r=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Wr=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Mr;if(i==="$self")return new Br;const e=i.indexOf("#");if(e===-1)return new $r(i);if(e===0)return new jr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Wr(t,r)}}var Ur=/\\(\d+)/,Ye=/\\(\d+)/g,Hr=-1,bt=-2;var te=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${gt(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},Fr=class extends te{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},qr=class extends te{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new X(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ze=class extends te{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Y,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ne=class extends te{constructor(e,t,r,n,s,o,c,a,u,m){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new X(s,this.id),this.beginCaptures=o,this._end=new X(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends te{constructor(e,t,r,n,s,o,c,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new X(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new X(c,bt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Y;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Y,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},It=class S{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new Fr(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new qr(e.$vscodeTextmateLocation,e.id,e.name,e.match,S._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=ft({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new Ze(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,S._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,S._compileCaptures(e.whileCaptures||e.captures,t,r),S._compilePatterns(e.patterns,t,r)):new Ne(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,S._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,S._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,S._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>s&&(s=c)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let a=0;e[o].patterns&&(a=S.getCompiledRuleId(e[o],t,r)),n[c]=S.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const c=e[s];let a=-1;if(c.include){const u=Pt(c.include);switch(u.kind){case 0:case 1:a=S.getCompiledRuleId(r[c.include],t,r);break;case 2:let m=r[u.ruleName];m&&(a=S.getCompiledRuleId(m,t,r));break;case 3:case 4:const h=u.scopeName,p=u.kind===4?u.ruleName:null,d=t.getExternalGrammar(h,r);if(d)if(p){let f=d.repository[p];f&&(a=S.getCompiledRuleId(f,t,d.repository))}else a=S.getCompiledRuleId(d.repository.$self,t,d.repository);break}}else a=S.getCompiledRuleId(c,t,r);if(a!==-1){const u=t.getRule(a);let m=!1;if((u instanceof Ze||u instanceof Ne||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},X=class St{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let c=0;c<r;c++)if(e.charAt(c)==="\\"&&c+1<r){const u=e.charAt(c+1);u==="z"?(s.push(e.substring(n,c)),s.push("$(?!\\n)(?<!\\n)"),n=c+2):(u==="A"||u==="G")&&(o=!0),c++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Ur.test(this.source):this.hasBackReferences=!1}clone(){return new St(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return Ye.lastIndex=0,this.source.replace(Ye,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,c,a;for(s=0,o=this.source.length;s<o;s++)c=this.source.charAt(s),e[s]=c,t[s]=c,r[s]=c,n[s]=c,c==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Y=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new et(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new et(i,r,this._items.map(n=>n.ruleId))}},et=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
3
3
|
`)}findNextMatchSync(i,e,t){const r=this.scanner.findNextMatchSync(i,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ie=class{constructor(i,e){this.languageId=i,this.tokenType=e}},G,zr=(G=class{constructor(e,t){_(this,"_defaultAttributes");_(this,"_embeddedLanguagesMatcher");_(this,"_getBasicScopeAttributes",new Tt(e=>{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Ie(t,r)}));this._defaultAttributes=new Ie(e,8),this._embeddedLanguagesMatcher=new Jr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?G._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(G.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},_(G,"_NULL_SCOPE_METADATA",new Ie(0,0)),_(G,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),G),Jr=class{constructor(i){_(this,"values");_(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const e=i.map(([t,r])=>Rt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const e=i.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},tt=class{constructor(i,e){this.stack=i,this.stoppedEarly=e}};function Ot(i,e,t,r,n,s,o,c){const a=e.content.length;let u=!1,m=-1;if(o){const d=Kr(i,e,t,r,n,s);n=d.stack,r=d.linePos,t=d.isFirstLine,m=d.anchorPosition}const h=Date.now();for(;!u;){if(c!==0&&Date.now()-h>c)return new tt(n,!0);p()}return new tt(n,!1);function p(){const d=Qr(i,e,t,r,n,m);if(!d){s.produce(n,a),u=!0;return}const f=d.captureIndices,T=d.matchedRuleId,E=f&&f.length>0?f[0].end>r:!1;if(T===Hr){const g=n.getRule(i);s.produce(n,f[0].start),n=n.withContentNameScopesList(n.nameScopesList),J(i,e,t,n,s,g.endCaptures,f),s.produce(n,f[0].end);const y=n;if(n=n.parent,m=y.getAnchorPos(),!E&&y.getEnterPos()===r){n=y,s.produce(n,a),u=!0;return}}else{const g=i.getRule(T);s.produce(n,f[0].start);const y=n,R=g.getName(e.content,f),A=n.contentNameScopesList.pushAttributed(R,i);if(n=n.push(T,r,m,f[0].end===a,null,A,A),g instanceof Ne){const v=g;J(i,e,t,n,s,v.beginCaptures,f),s.produce(n,f[0].end),m=f[0].end;const w=v.getContentName(e.content,f),L=A.pushAttributed(w,i);if(n=n.withContentNameScopesList(L),v.endHasBackReferences&&(n=n.withEndRule(v.getEndWithResolvedBackReferences(e.content,f))),!E&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(g instanceof he){const v=g;J(i,e,t,n,s,v.beginCaptures,f),s.produce(n,f[0].end),m=f[0].end;const w=v.getContentName(e.content,f),L=A.pushAttributed(w,i);if(n=n.withContentNameScopesList(L),v.whileHasBackReferences&&(n=n.withEndRule(v.getWhileWithResolvedBackReferences(e.content,f))),!E&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(J(i,e,t,n,s,g.captures,f),s.produce(n,f[0].end),n=n.pop(),!E){n=n.safePop(),s.produce(n,a),u=!0;return}}f[0].end>r&&(r=f[0].end,t=!1)}}function Kr(i,e,t,r,n,s){let o=n.beginRuleCapturedEOL?0:-1;const c=[];for(let a=n;a;a=a.pop()){const u=a.getRule(i);u instanceof he&&c.push({rule:u,stack:a})}for(let a=c.pop();a;a=c.pop()){const{ruleScanner:u,findOptions:m}=Zr(a.rule,i,a.stack.endRule,t,r===o),h=u.findNextMatchSync(e,r,m);if(h){if(h.ruleId!==bt){n=a.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(s.produce(a.stack,h.captureIndices[0].start),J(i,e,t,a.stack,s,a.rule.whileCaptures,h.captureIndices),s.produce(a.stack,h.captureIndices[0].end),o=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,t=!1))}else{n=a.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:o,isFirstLine:t}}function Qr(i,e,t,r,n,s){const o=Xr(i,e,t,r,n,s),c=i.getInjections();if(c.length===0)return o;const a=Yr(c,i,e,t,r,n,s);if(!a)return o;if(!o)return a;const u=o.captureIndices[0].start,m=a.captureIndices[0].start;return m<u||a.priorityMatch&&m===u?a:o}function Xr(i,e,t,r,n,s){const o=n.getRule(i),{ruleScanner:c,findOptions:a}=wt(o,i,n.endRule,t,r===s),u=c.findNextMatchSync(e,r,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function Yr(i,e,t,r,n,s,o){let c=Number.MAX_VALUE,a=null,u,m=0;const h=s.contentNameScopesList.getScopeNames();for(let p=0,d=i.length;p<d;p++){const f=i[p];if(!f.matcher(h))continue;const T=e.getRule(f.ruleId),{ruleScanner:E,findOptions:g}=wt(T,e,null,r,n===o),y=E.findNextMatchSync(t,n,g);if(!y)continue;const R=y.captureIndices[0].start;if(!(R>=c)&&(c=R,a=y.captureIndices,u=y.ruleId,m=f.priority,c===n))break}return a?{priorityMatch:m===-1,captureIndices:a,matchedRuleId:u}:null}function wt(i,e,t,r,n){return{ruleScanner:i.compileAG(e,t,r,n),findOptions:0}}function Zr(i,e,t,r,n){return{ruleScanner:i.compileWhileAG(e,t,r,n),findOptions:0}}function J(i,e,t,r,n,s,o){if(s.length===0)return;const c=e.content,a=Math.min(s.length,o.length),u=[],m=o[0].end;for(let h=0;h<a;h++){const p=s[h];if(p===null)continue;const d=o[h];if(d.length===0)continue;if(d.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,d.start):n.produce(r,d.start),p.retokenizeCapturedWithRuleId){const T=p.getName(c,o),E=r.contentNameScopesList.pushAttributed(T,i),g=p.getContentName(c,o),y=E.pushAttributed(g,i),R=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,E,y),A=i.createOnigString(c.substring(0,d.end));Ot(i,A,t&&d.start===0,d.start,R,n,!1,0),Lt(A);continue}const f=p.getName(c,o);if(f!==null){const E=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(f,i);u.push(new ei(E,d.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ei=class{constructor(i,e){_(this,"scopes");_(this,"endPos");this.scopes=i,this.endPos=e}};function ti(i,e,t,r,n,s,o,c){return new ii(i,e,t,r,n,s,o,c)}function rt(i,e,t,r,n){const s=ue(e,de),o=It.getCompiledRuleId(t,r,n.repository);for(const c of s)i.push({debugSelector:e,matcher:c.matcher,ruleId:o,grammar:n,priority:c.priority})}function de(i,e){if(e.length<i.length)return!1;let t=0;return i.every(r=>{for(let n=t;n<e.length;n++)if(ri(e[n],r))return t=n+1,!0;return!1})}function ri(i,e){if(!i)return!1;if(i===e)return!0;const t=e.length;return i.length>t&&i.substr(0,t)===e&&i[t]==="."}var ii=class{constructor(i,e,t,r,n,s,o,c){_(this,"_rootId");_(this,"_lastRuleId");_(this,"_ruleId2desc");_(this,"_includedGrammars");_(this,"_grammarRepository");_(this,"_grammar");_(this,"_injections");_(this,"_basicScopeAttributesProvider");_(this,"_tokenTypeMatchers");if(this._rootScopeName=i,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new zr(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=it(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const a of Object.keys(n)){const u=ue(a,de);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:n[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,r=i.lookup(t);if(r){const n=r.injections;if(n)for(let o in n)rt(e,o,n[o],this,r);const s=this._grammarRepository.injections(t);s&&s.forEach(o=>{const c=this.getExternalGrammar(o);if(c){const a=c.injectionSelector;a&&rt(e,a,c,this,c)}})}return e.sort((n,s)=>n.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const e=++this._lastRuleId,t=i(e);return this._ruleId2desc[e]=t,t}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,e){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const t=this._grammarRepository.lookup(i);if(t)return this._includedGrammars[i]=it(t,e&&e.$base),this._includedGrammars[i]}}tokenizeLine(i,e,t=0){const r=this._tokenize(i,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(i,e,t=0){const r=this._tokenize(i,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(i,e,t,r){this._rootId===-1&&(this._rootId=It.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===Ve.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),h=H.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),p=this.getRule(this._rootId).getName(null,null);let d;p?d=K.createRootAndLookUpScopeName(p,h,this):d=K.createRoot("unknown",h),e=new Ve(null,this._rootId,-1,-1,!1,null,d,d)}else n=!1,e.reset();i=i+`
|
|
4
4
|
`;const s=this.createOnigString(i),o=s.content.length,c=new si(t,i,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Ot(this,s,n,0,e,c,!0,r);return Lt(s),{lineLength:o,lineTokens:c,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function it(i,e){return i=Ar(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=e||i.repository.$self,i}var K=class N{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,n=(e==null?void 0:e.scopePath)??null;for(const s of t)n=be.push(n,s.scopeNames),r=new N(r,n,s.encodedTokenAttributes);return r}static createRoot(e,t){return new N(null,new be(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const n=r.getMetadataForScope(e),s=new be(null,e),o=r.themeProvider.themeMatch(s),c=N.mergeAttributes(t,n,o);return new N(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return N.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let n=-1,s=0,o=0;return r!==null&&(n=r.fontStyle,s=r.foregroundId,o=r.backgroundId),H.set(e,t.languageId,t.tokenType,null,n,s,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return N._pushAttributed(this,e,t);const r=e.split(/ /g);let n=this;for(const s of r)n=N._pushAttributed(n,s,t);return n}static _pushAttributed(e,t,r){const n=r.getMetadataForScope(t),s=e.scopePath.push(t),o=r.themeProvider.themeMatch(s),c=N.mergeAttributes(e.tokenAttributes,n,o);return new N(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var n;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((n=r.parent)==null?void 0:n.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},k,Ve=(k=class{constructor(e,t,r,n,s,o,c,a){_(this,"_stackElementBrand");_(this,"_enterPos");_(this,"_anchorPos");_(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=c,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(e){return e===null?!1:k._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?K.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){k._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,n,s,o,c){return new k(this,e,t,r,n,s,o,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,n;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new k(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=K.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new k(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,K.fromExtension(r,t.contentNameScopesList))}},_(k,"NULL",new k(null,0,0,0,!1,null,null,null)),k),ni=class{constructor(i,e){_(this,"balancedBracketScopes");_(this,"unbalancedBracketScopes");_(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(t=>t==="*"?(this.allowAny=!0,[]):ue(t,de).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>ue(t,de).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const e of this.unbalancedBracketScopes)if(e(i))return!1;for(const e of this.balancedBracketScopes)if(e(i))return!0;return this.allowAny}},si=class{constructor(i,e,t,r){_(this,"_emitBinaryTokens");_(this,"_lineText");_(this,"_tokens");_(this,"_binaryTokens");_(this,"_lastTokenEndIndex");_(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=i,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,e){this.produceFromScopes(i.contentNameScopesList,e)}produceFromScopes(i,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(i==null?void 0:i.tokenAttributes)??0,s=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(i==null?void 0:i.getScopeNames())??[];for(const c of this._tokenTypeOverrides)c.matcher(o)&&(n=H.set(n,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(n=H.set(n,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(i,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,n=this._binaryTokens.length;r<n;r++)t[r]=this._binaryTokens[r];return t}},oi=class{constructor(i,e){_(this,"_grammars",new Map);_(this,"_rawGrammars",new Map);_(this,"_injectionGrammars",new Map);_(this,"_theme");this._onigLib=e,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,e){this._rawGrammars.set(i.scopeName,i),e&&this._injectionGrammars.set(i.scopeName,e)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,e,t,r,n){if(!this._grammars.has(i)){let s=this._rawGrammars.get(i);if(!s)return null;this._grammars.set(i,ti(i,s,e,t,r,n,this,this._onigLib))}return this._grammars.get(i)}},ai=class{constructor(e){_(this,"_options");_(this,"_syncRegistry");_(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new oi(le.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(le.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new ni(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,s){const o=new xr(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(c=>this._loadSingleGrammar(c.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,r,n,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,s)}},xe=Ve.NULL;const ci=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],li=/["&'<>`]/g,ui=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mi=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,hi=/[|\\{}()[\]^$+*?.]/g,nt=new WeakMap;function di(i,e){if(i=i.replace(e.subset?pi(e.subset):li,r),e.subset||e.escapeOnly)return i;return i.replace(ui,t).replace(mi,r);function t(n,s,o){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(n,s,o){return e.format(n.charCodeAt(0),o.charCodeAt(s+1),e)}}function pi(i){let e=nt.get(i);return e||(e=_i(i),nt.set(i,e)),e}function _i(i){const e=[];let t=-1;for(;++t<i.length;)e.push(i[t].replace(hi,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const fi=/[\dA-Fa-f]/;function gi(i,e,t){const r="&#x"+i.toString(16).toUpperCase();return t&&e&&!fi.test(String.fromCharCode(e))?r:r+";"}const Ei=/\d/;function yi(i,e,t){const r="&#"+String(i);return t&&e&&!Ei.test(String.fromCharCode(e))?r:r+";"}const Ri=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Se={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ti=["cent","copy","divide","gt","lt","not","para","times"],Ct={}.hasOwnProperty,Ge={};let se;for(se in Se)Ct.call(Se,se)&&(Ge[Se[se]]=se);const Ai=/[^\dA-Za-z]/;function vi(i,e,t,r){const n=String.fromCharCode(i);if(Ct.call(Ge,n)){const s=Ge[n],o="&"+s;return t&&Ri.includes(s)&&!Ti.includes(s)&&(!r||e&&e!==61&&Ai.test(String.fromCharCode(e)))?o:o+";"}return""}function Li(i,e,t){let r=gi(i,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=vi(i,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const s=yi(i,e,t.omitOptionalSemicolons);s.length<r.length&&(r=s)}return n&&(!t.useShortestReferences||n.length<r.length)?n:r}function U(i,e){return di(i,Object.assign({format:Li},e))}const Pi=/^>|^->|<!--|-->|--!>|<!-$/g,bi=[">"],Ii=["<",">"];function Si(i,e,t,r){return r.settings.bogusComments?"<?"+U(i.value,Object.assign({},r.settings.characterReferences,{subset:bi}))+">":"<!--"+i.value.replace(Pi,n)+"-->";function n(s){return U(s,Object.assign({},r.settings.characterReferences,{subset:Ii}))}}function Oi(i,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const b=Dt(1),kt=Dt(-1),wi=[];function Dt(i){return e;function e(t,r,n){const s=t?t.children:wi;let o=(r||0)+i,c=s[o];if(!n)for(;c&&Me(c);)o+=i,c=s[o];return c}}const Ci={}.hasOwnProperty;function Nt(i){return e;function e(t,r,n){return Ci.call(i,t.tagName)&&i[t.tagName](t,r,n)}}const $e=Nt({body:Di,caption:Oe,colgroup:Oe,dd:Gi,dt:xi,head:Oe,html:ki,li:Vi,optgroup:Mi,option:Bi,p:Ni,rp:st,rt:st,tbody:$i,td:ot,tfoot:Wi,th:ot,thead:ji,tr:Ui});function Oe(i,e,t){const r=b(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Me(r.value.charAt(0)))}function ki(i,e,t){const r=b(t,e);return!r||r.type!=="comment"}function Di(i,e,t){const r=b(t,e);return!r||r.type!=="comment"}function Ni(i,e,t){const r=b(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Vi(i,e,t){const r=b(t,e);return!r||r.type==="element"&&r.tagName==="li"}function xi(i,e,t){const r=b(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Gi(i,e,t){const r=b(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function st(i,e,t){const r=b(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Mi(i,e,t){const r=b(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Bi(i,e,t){const r=b(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function ji(i,e,t){const r=b(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function $i(i,e,t){const r=b(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Wi(i,e,t){return!b(t,e)}function Ui(i,e,t){const r=b(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function ot(i,e,t){const r=b(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Hi=Nt({body:zi,colgroup:Ji,head:qi,html:Fi,tbody:Ki});function Fi(i){const e=b(i,-1);return!e||e.type!=="comment"}function qi(i){const e=new Set;for(const r of i.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=i.children[0];return!t||t.type==="element"}function zi(i){const e=b(i,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Me(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Ji(i,e,t){const r=kt(t,e),n=b(i,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&$e(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Ki(i,e,t){const r=kt(t,e),n=b(i,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&$e(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const oe={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
connectSSE();
|
|
29
29
|
</script>
|
|
30
|
-
<script type="module" crossorigin src="/assets/index-
|
|
30
|
+
<script type="module" crossorigin src="/assets/index-BohqOATi.js"></script>
|
|
31
31
|
<link rel="stylesheet" crossorigin href="/assets/style-D4VhVaF9.css">
|
|
32
32
|
</head>
|
|
33
33
|
<body>
|