mastra 0.10.4-alpha.0 → 0.10.4-alpha.2
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/{chunk-OPWLTSCW.js → chunk-MKPHGZFU.js} +2 -5
- package/dist/commands/create/create.js +1 -1
- package/dist/index.js +49 -30
- package/package.json +8 -8
- package/src/playground/dist/assets/{index-BGbMrToA.js → index-BHq2aUeu.js} +1 -1
- package/src/playground/dist/assets/{index-C410HbRF.js → index-C-dPN0kw.js} +220 -220
- package/src/playground/dist/assets/{index-CGDS8Qzq.js → index-otmcLOyZ.js} +1 -1
- package/src/playground/dist/assets/style-BnGp4Od9.css +1 -0
- package/src/playground/dist/index.html +2 -2
- package/src/playground/dist/assets/style-C8pQhOQV.css +0 -1
|
@@ -146,7 +146,7 @@ function getPackageManagerInstallCommand(pm) {
|
|
|
146
146
|
return "install";
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
var args = ["-y", "@mastra/mcp-docs-server
|
|
149
|
+
var args = ["-y", "@mastra/mcp-docs-server"];
|
|
150
150
|
var createMcpConfig = (editor) => {
|
|
151
151
|
if (editor === "vscode") {
|
|
152
152
|
return {
|
|
@@ -165,10 +165,7 @@ var createMcpConfig = (editor) => {
|
|
|
165
165
|
}
|
|
166
166
|
return {
|
|
167
167
|
mcpServers: {
|
|
168
|
-
mastra:
|
|
169
|
-
command: "cmd",
|
|
170
|
-
args: ["/c", "npx", ...args]
|
|
171
|
-
} : {
|
|
168
|
+
mastra: {
|
|
172
169
|
command: "npx",
|
|
173
170
|
args
|
|
174
171
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-MKPHGZFU.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
3
3
|
export { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
4
|
-
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-
|
|
5
|
-
export { create } from './chunk-
|
|
4
|
+
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-MKPHGZFU.js';
|
|
5
|
+
export { create } from './chunk-MKPHGZFU.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { config } from 'dotenv';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
@@ -20,11 +20,16 @@ import stripJsonComments from 'strip-json-comments';
|
|
|
20
20
|
import { spawn } from 'child_process';
|
|
21
21
|
|
|
22
22
|
var BuildBundler = class extends Bundler {
|
|
23
|
-
|
|
23
|
+
customEnvFile;
|
|
24
|
+
constructor(customEnvFile) {
|
|
24
25
|
super("Build");
|
|
26
|
+
this.customEnvFile = customEnvFile;
|
|
25
27
|
}
|
|
26
28
|
getEnvFiles() {
|
|
27
29
|
const possibleFiles = [".env.production", ".env.local", ".env"];
|
|
30
|
+
if (this.customEnvFile) {
|
|
31
|
+
possibleFiles.unshift(this.customEnvFile);
|
|
32
|
+
}
|
|
28
33
|
try {
|
|
29
34
|
const fileService = new FileService$2();
|
|
30
35
|
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
@@ -99,7 +104,12 @@ var BuildBundler = class extends Bundler {
|
|
|
99
104
|
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
100
105
|
}
|
|
101
106
|
};
|
|
102
|
-
async function build({
|
|
107
|
+
async function build({
|
|
108
|
+
dir: dir2,
|
|
109
|
+
tools,
|
|
110
|
+
root,
|
|
111
|
+
env
|
|
112
|
+
}) {
|
|
103
113
|
const rootDir = root || process.cwd();
|
|
104
114
|
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(rootDir, dir2) : join(rootDir, "src", "mastra");
|
|
105
115
|
const outputDirectory = join(rootDir, ".mastra");
|
|
@@ -110,7 +120,7 @@ async function build({ dir: dir2, tools, root }) {
|
|
|
110
120
|
const mastraEntryFile = fs2.getFirstExistingFile([join(mastraDir, "index.ts"), join(mastraDir, "index.js")]);
|
|
111
121
|
const platformDeployer = await getDeployer(mastraEntryFile, outputDirectory);
|
|
112
122
|
if (!platformDeployer) {
|
|
113
|
-
const deployer = new BuildBundler();
|
|
123
|
+
const deployer = new BuildBundler(env);
|
|
114
124
|
await deployer.prepare(outputDirectory);
|
|
115
125
|
await deployer.bundle(mastraEntryFile, outputDirectory, discoveredTools);
|
|
116
126
|
logger.info(`Build successful, you can now deploy the .mastra/output directory to your target platform.`);
|
|
@@ -162,11 +172,16 @@ async function deploy({ dir: dir2 }) {
|
|
|
162
172
|
}
|
|
163
173
|
}
|
|
164
174
|
var DevBundler = class extends Bundler {
|
|
165
|
-
|
|
175
|
+
customEnvFile;
|
|
176
|
+
constructor(customEnvFile) {
|
|
166
177
|
super("Dev");
|
|
178
|
+
this.customEnvFile = customEnvFile;
|
|
167
179
|
}
|
|
168
180
|
getEnvFiles() {
|
|
169
181
|
const possibleFiles = [".env.development", ".env.local", ".env"];
|
|
182
|
+
if (this.customEnvFile) {
|
|
183
|
+
possibleFiles.unshift(this.customEnvFile);
|
|
184
|
+
}
|
|
170
185
|
try {
|
|
171
186
|
const fileService = new FileService$1();
|
|
172
187
|
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
@@ -175,8 +190,6 @@ var DevBundler = class extends Bundler {
|
|
|
175
190
|
}
|
|
176
191
|
return Promise.resolve([]);
|
|
177
192
|
}
|
|
178
|
-
async writePackageJson() {
|
|
179
|
-
}
|
|
180
193
|
async prepare(outputDirectory) {
|
|
181
194
|
await super.prepare(outputDirectory);
|
|
182
195
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -194,9 +207,13 @@ var DevBundler = class extends Bundler {
|
|
|
194
207
|
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV || "development")
|
|
195
208
|
});
|
|
196
209
|
const toolsInputOptions = await this.getToolsInputOptions(toolsPaths);
|
|
197
|
-
await writeTelemetryConfig(entryFile, join(outputDirectory, this.outputDir));
|
|
198
|
-
await this.writeInstrumentationFile(join(outputDirectory, this.outputDir));
|
|
199
210
|
const outputDir = join(outputDirectory, this.outputDir);
|
|
211
|
+
await writeTelemetryConfig(entryFile, outputDir);
|
|
212
|
+
await this.writeInstrumentationFile(outputDir);
|
|
213
|
+
await this.writePackageJson(outputDir, /* @__PURE__ */ new Map(), {});
|
|
214
|
+
this.logger.info("Installing dependencies");
|
|
215
|
+
await this.installDependencies(outputDirectory);
|
|
216
|
+
this.logger.info("Done installing dependencies");
|
|
200
217
|
const copyPublic = this.copyPublic.bind(this);
|
|
201
218
|
const watcher = await createWatcher(
|
|
202
219
|
{
|
|
@@ -275,15 +292,6 @@ var startServer = async (dotMastraPath, port, env, errorRestartCount = 0) => {
|
|
|
275
292
|
const instrumentation = import.meta.resolve("@opentelemetry/instrumentation/hook.mjs");
|
|
276
293
|
commands.push("--import=./instrumentation.mjs", `--import=${instrumentation}`);
|
|
277
294
|
}
|
|
278
|
-
let portToUse = port.toString() || process.env.PORT;
|
|
279
|
-
if (!portToUse || isNaN(Number(portToUse))) {
|
|
280
|
-
const portList = Array.from({ length: 21 }, (_, i) => 4111 + i);
|
|
281
|
-
portToUse = String(
|
|
282
|
-
await getPort({
|
|
283
|
-
port: portList
|
|
284
|
-
})
|
|
285
|
-
);
|
|
286
|
-
}
|
|
287
295
|
commands.push("index.mjs");
|
|
288
296
|
currentServerProcess = execa("node", commands, {
|
|
289
297
|
cwd: dotMastraPath,
|
|
@@ -291,7 +299,7 @@ var startServer = async (dotMastraPath, port, env, errorRestartCount = 0) => {
|
|
|
291
299
|
NODE_ENV: "production",
|
|
292
300
|
...Object.fromEntries(env),
|
|
293
301
|
MASTRA_DEV: "true",
|
|
294
|
-
PORT:
|
|
302
|
+
PORT: port.toString(),
|
|
295
303
|
MASTRA_DEFAULT_STORAGE_URL: `file:${join(dotMastraPath, "..", "mastra.db")}`
|
|
296
304
|
},
|
|
297
305
|
stdio: ["inherit", "inherit", "inherit", "ipc"],
|
|
@@ -371,7 +379,8 @@ async function dev({
|
|
|
371
379
|
port,
|
|
372
380
|
dir: dir2,
|
|
373
381
|
root,
|
|
374
|
-
tools
|
|
382
|
+
tools,
|
|
383
|
+
env
|
|
375
384
|
}) {
|
|
376
385
|
const rootDir = root || process.cwd();
|
|
377
386
|
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(process.cwd(), dir2) : join(process.cwd(), "src", "mastra");
|
|
@@ -380,17 +389,25 @@ async function dev({
|
|
|
380
389
|
const discoveredTools = [defaultToolsPath, ...tools || []];
|
|
381
390
|
const fileService = new FileService$1();
|
|
382
391
|
const entryFile = fileService.getFirstExistingFile([join(mastraDir, "index.ts"), join(mastraDir, "index.js")]);
|
|
383
|
-
const bundler = new DevBundler();
|
|
392
|
+
const bundler = new DevBundler(env);
|
|
384
393
|
await bundler.prepare(dotMastraPath);
|
|
385
394
|
const watcher = await bundler.watch(entryFile, dotMastraPath, discoveredTools);
|
|
386
|
-
const
|
|
395
|
+
const loadedEnv = await bundler.loadEnvVars();
|
|
387
396
|
const serverOptions = await getServerOptions(entryFile, join(dotMastraPath, "output"));
|
|
388
|
-
|
|
389
|
-
|
|
397
|
+
let portToUse = port ?? serverOptions?.port ?? process.env.PORT;
|
|
398
|
+
if (!portToUse || isNaN(Number(portToUse))) {
|
|
399
|
+
const portList = Array.from({ length: 21 }, (_, i) => 4111 + i);
|
|
400
|
+
portToUse = String(
|
|
401
|
+
await getPort({
|
|
402
|
+
port: portList
|
|
403
|
+
})
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
await startServer(join(dotMastraPath, "output"), Number(portToUse), loadedEnv);
|
|
390
407
|
watcher.on("event", (event) => {
|
|
391
408
|
if (event.code === "BUNDLE_END") {
|
|
392
409
|
logger.info("[Mastra Dev] - Bundling finished, restarting server...");
|
|
393
|
-
rebundleAndRestart(dotMastraPath,
|
|
410
|
+
rebundleAndRestart(dotMastraPath, Number(portToUse), bundler);
|
|
394
411
|
}
|
|
395
412
|
});
|
|
396
413
|
process.on("SIGINT", () => {
|
|
@@ -720,7 +737,7 @@ program.command("lint").description("Lint your Mastra project").option("-d, --di
|
|
|
720
737
|
origin
|
|
721
738
|
});
|
|
722
739
|
});
|
|
723
|
-
program.command("dev").description("Start mastra server").option("-d, --dir <dir>", "Path to your mastra folder").option("-r, --root <root>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").option("-p, --port <port>", "deprecated: Port number for the development server (defaults to 4111)").action((args) => {
|
|
740
|
+
program.command("dev").description("Start mastra server").option("-d, --dir <dir>", "Path to your mastra folder").option("-r, --root <root>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").option("-p, --port <port>", "deprecated: Port number for the development server (defaults to 4111)").option("-e, --env <env>", "Custom env file to include in the dev server").action((args) => {
|
|
724
741
|
analytics.trackCommand({
|
|
725
742
|
command: "dev",
|
|
726
743
|
origin
|
|
@@ -732,12 +749,13 @@ program.command("dev").description("Start mastra server").option("-d, --dir <dir
|
|
|
732
749
|
port: args?.port ? parseInt(args.port) : null,
|
|
733
750
|
dir: args?.dir,
|
|
734
751
|
root: args?.root,
|
|
735
|
-
tools: args?.tools ? args.tools.split(",") : []
|
|
752
|
+
tools: args?.tools ? args.tools.split(",") : [],
|
|
753
|
+
env: args?.env
|
|
736
754
|
}).catch((err) => {
|
|
737
755
|
logger.error(err.message);
|
|
738
756
|
});
|
|
739
757
|
});
|
|
740
|
-
program.command("build").description("Build your Mastra project").option("-d, --dir <path>", "Path to your Mastra Folder").option("-r, --root <path>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").action(async (args) => {
|
|
758
|
+
program.command("build").description("Build your Mastra project").option("-d, --dir <path>", "Path to your Mastra Folder").option("-r, --root <path>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").option("-e, --env <env>", "Custom env file to include in the build").action(async (args) => {
|
|
741
759
|
await analytics.trackCommandExecution({
|
|
742
760
|
command: "mastra build",
|
|
743
761
|
args,
|
|
@@ -745,7 +763,8 @@ program.command("build").description("Build your Mastra project").option("-d, --
|
|
|
745
763
|
await build({
|
|
746
764
|
dir: args?.dir,
|
|
747
765
|
root: args?.root,
|
|
748
|
-
tools: args?.tools ? args.tools.split(",") : []
|
|
766
|
+
tools: args?.tools ? args.tools.split(",") : [],
|
|
767
|
+
env: args?.env
|
|
749
768
|
});
|
|
750
769
|
},
|
|
751
770
|
origin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.10.4-alpha.
|
|
3
|
+
"version": "0.10.4-alpha.2",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"swr": "^2.3.3",
|
|
56
56
|
"tcp-port-used": "^1.0.2",
|
|
57
57
|
"yocto-spinner": "^0.1.2",
|
|
58
|
-
"zod": "^3.
|
|
58
|
+
"zod": "^3.25.56",
|
|
59
59
|
"zod-to-json-schema": "^3.24.5",
|
|
60
|
-
"@mastra/deployer": "^0.10.4-alpha.
|
|
61
|
-
"@mastra/mcp": "^0.10.
|
|
60
|
+
"@mastra/deployer": "^0.10.4-alpha.1",
|
|
61
|
+
"@mastra/mcp": "^0.10.3-alpha.0",
|
|
62
62
|
"@mastra/loggers": "^0.10.2-alpha.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"tsup": "^8.5.0",
|
|
77
77
|
"type-fest": "^4.37.0",
|
|
78
78
|
"typescript": "^5.8.2",
|
|
79
|
-
"vitest": "^3.
|
|
79
|
+
"vitest": "^3.2.2",
|
|
80
80
|
"@internal/lint": "0.0.10",
|
|
81
|
-
"@mastra/
|
|
82
|
-
"@mastra/playground-ui": "5.1.4-alpha.
|
|
83
|
-
"@mastra/
|
|
81
|
+
"@mastra/client-js": "0.10.3-alpha.1",
|
|
82
|
+
"@mastra/playground-ui": "5.1.4-alpha.2",
|
|
83
|
+
"@mastra/core": "0.10.4-alpha.1"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"@mastra/core": "^0.10.2-alpha.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ve,g as Lp}from"./index-C410HbRF.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
1
|
+
import{d as ve,g as Lp}from"./index-C-dPN0kw.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
3
|
*
|
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|